/* ============================================================
   westiger 首页自定义样式
   说明：本文件在模板样式之后加载，用于覆盖 templatemo-barber-shop.css
   路径均相对本文件所在目录 assets/css/
   ============================================================ */

/* 主题色（字体变量已在模板中改为系统中文） */
:root {
    --primary-color: #5ac3eb;
    --secondary-color: #3128c1;
}

/* 留言表单提交状态提示 */
.bb-form-msg {
    margin: 16px 0 0;
    min-height: 1.4em;
    text-align: center;
    font-size: 14px;
    color: #666;
}
.bb-form-msg.is-ok { color: #1a9c5b; }
.bb-form-msg.is-err { color: #d1242f; }

/* 友情链接 */
.friend-link,
.friend-link:hover,
.friend-link:focus {
    color: inherit;
    text-decoration: none;
}
.friend-link:hover { color: var(--primary-color); }

/* 抖音美好体 */
@font-face {
    font-family: "DouyinBeautiful";
    src: url('../font/抖音美好体.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 侧边栏 logo */
.brand-logo {
    font-size: 96px;
    line-height: 1;
    color: var(--dark-color);
    display: inline-block;
    margin-bottom: 45px;
}
.brand-logo:hover { color: var(--white-color); }

/* 第一屏右侧背景图 + 配套遮罩（左侧偏暗保证白字可读，右侧透亮保留图片质感） */
.hero-section {
    background-image: url('../picture/bg.webp');
}
.hero-section::after {
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
    opacity: 1;
}

/* 留言区 / 折扣区背景 */
.booking-section {
    background-image: url('../picture/web.jpg');
}
.featured-section {
    background-image: url('../picture/bg2.webp');
}

/* 折扣区：红标题用抖音美好体 + 右下 1px 白色垫字（说明文字为正文，继承微软雅黑/苹方） */
.featured-section h2 {
    position: relative;
    isolation: isolate;
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
    font-weight: 700;
}
.featured-section h2::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: #fff;
    font: inherit;
    text-align: center;
    white-space: nowrap;
    transform: translate(1px, 1px);
    pointer-events: none;
}

/* 第一屏大标题、按钮 */
.hero-title {
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
    font-size: 96px;
    font-style: normal;
    line-height: 1.2;
    color: var(--white-color);
}
.custom-btn {
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    letter-spacing: 1px;
}
.hero-cta-text {
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
}

/* 全站中文标题统一抖音美好体 */
.douyin-text,
.services-thumb-price {
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
}

/* 提交留言按钮 */
.submit-msg-btn {
    background: var(--primary-color);
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
}
.submit-msg-btn:hover,
.submit-msg-btn:focus {
    background: var(--primary-color);
    filter: brightness(0.92);
}

/* 价目表：用 flex 布局拉开行距，分隔线垂直居中 */
.price-list-thumb {
    margin-bottom: 24px;
}
.price-list-thumb h6 {
    display: flex;
    align-items: center; /* 子元素（名称/横线/价格）垂直居中 */
    padding-bottom: 6px;
}
.price-list-thumb-divider {
    flex: 1;
    margin: 0 15px;
}

/* 联系方式图标：与文字左对齐、放大；跟随明暗模式（白天黑/黑夜白），hover 品牌色 */
.contact-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    margin-left: -4px; /* 抵消图标字形左侧留白，使圆形视觉左缘对齐上方文字 */
}
.social-icon-link.contact-icon {
    background: transparent;
    color: var(--ci-default, #000);
    font-family: "iconfont-contact" !important;
    font-size: 48px;
    width: 58px;
    height: 58px;
    line-height: 58px;
    margin: 0;
}
.social-icon-link.contact-icon:hover { background: transparent; }
.social-icon-link.contact-icon.ci-qq:hover { color: #12B7F5; }
.social-icon-link.contact-icon.ci-weixin:hover { color: #07C160; }
.social-icon-link.contact-icon.ci-bilibili:hover { color: #FB7299; }
.social-icon-link.contact-icon.ci-email:hover { color: var(--ci-hover-email, #333); }
@media (prefers-color-scheme: dark) {
    .social-icon-link.contact-icon { --ci-default: #fff; }
    .social-icon-link.contact-icon.ci-email:hover { --ci-hover-email: #fff; }
}

/* 微信点击复制后的提示气泡 */
.social-icon-item { position: relative; }
.wechat-copy-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 10;
}
.wechat-copy-tip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 侧边栏菜单 */
#sidebarMenu .nav-link {
    font-family: "DouyinBeautiful", "Noto Sans SC", sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .hero-title { font-size: 52px; }
    #sidebarMenu .nav-link { font-size: 24px; }
    .brand-logo { font-size: 64px; margin-bottom: 24px; }
}
