/* ========== 基础重置与变量 ========== */
:root {
    --primary: #e64340;
    --primary-dark: #c53530;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #f7f7f7;
    --bg-white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 72px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ========== 区块标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* ========== 顶部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition);
}

    .header.scrolled {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    transition: opacity var(--transition);
}

    .logo:hover {
        opacity: 0.8;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 15px;
    color: var(--text-light);
    transition: all var(--transition);
    position: relative;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background: rgba(230, 67, 64, 0.08);
    }

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    z-index: 1001;
}

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

/* 移动端遮罩 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .menu-overlay.active {
        opacity: 1;
    }

/* ========== 汉堡菜单内小程序码 ========== */
.menu-qrcode {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 20px;
    margin: 12px 16px 0;
    border-top: 1px solid #f0f0f0;
}

#nav.active .menu-qrcode {
    display: flex;
}

.qrcode-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    margin-bottom: 10px;
}
.qrcode-subtip {
    font-size: 12px;
    color: #bbb;
    margin-top: 2px;
}

/* ========== 桌面端固定小程序码 ========== */
.fixed-qrcode {
    position: fixed;
    right: 88px;
    bottom: 34px;
    z-index: 996;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .fixed-qrcode img {
        width: 68px;
        height: 68px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
        transition: all 0.33s ease;
    }

    .fixed-qrcode:hover img {
        width: 136px;
        height: 136px;
        border-radius: 16px;
        box-shadow: 0 8px 36px rgba(0, 0, 0, 0.19);
    }


.fixed-qrcode:hover   {
    opacity: 1;
}

/* ========== 桌面端二维码居中提示 ========== */
.qrcode-center-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 16px 40px;
    border-radius: 12px;
    letter-spacing: 2px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

    .qrcode-center-tip.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

/* ========== 首屏 Hero ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

    .hero-bg .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-bg::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100% );
    }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(230, 67, 64, 0.4);
}

    .hero-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(230, 67, 64, 0.5);
    }

/* ========== 数据统计 ========== */
.stats-section {
    background: var(--bg-white);
    padding: 62px 0;
    margin-top: -58px;
    position: relative;
    z-index: 2;
    border-radius: var(--radius) var(--radius) 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 47px;
    font-weight: 730;
    color: var(--primary);
    line-height: 1;
}

.stat-symbol {
    font-size: 23px;
    color: var(--primary);
    font-weight: 610;
}

.stat-label {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ========== 客照展示 ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
}

    .gallery-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

    .gallery-item img {
        width: 100%;
        height: 262px;
        object-fit: cover;
        transition: transform 0.59s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.04);
    }

    .gallery-item .photo-title {
        display: block;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 510;
        color: var(--text);
        text-align: center;
    }

/* ========== 婚纱系列 ========== */
.dress-section {
    background: var(--bg-white);
}

.dress-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 39px;
}

.dress-tab {
    padding: 10px 29px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

    .dress-tab:hover {
        color: var(--primary);
        background: rgba(230, 66, 63, 0.075);
    }

    .dress-tab.active {
        background: var(--primary);
        color: #fff;
    }

.dress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dress-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
}

    .dress-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

    .dress-item img {
        width: 100%;
        height: 261px;
        object-fit: cover;
        transition: transform 0.61s ease;
    }

    .dress-item:hover img {
        transform: scale(1.045);
    }

    .dress-item .photo-title {
        display: block;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 505;
        color: var(--text);
        text-align: center;
    }

/* ========== 余笙故事 ========== */
.about-content {
    max-width: 810px;
    margin: 0 auto 65px;
}

.about-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.79;
    text-align: justify;
    margin-bottom: 41px;
}

    .about-text p {
        margin-bottom: 17px;
    }

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg);
    padding: 31px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

    .about-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

.card-title {
    font-size: 21px;
    font-weight: 710;
    color: var(--text);
    margin-bottom: 11px;
}

.about-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.69;
}

/* 团队 */
.team-section {
    margin-top: 63px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 33px;
    max-width: 910px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 141px;
    height: 142px;
    border-radius: 49%;
    overflow: hidden;
    margin: 0 auto 19px;
    border: 3px solid var(--bg);
    box-shadow: var(--shadow);
}

    .member-avatar img {
        width: 101%;
        height: 99%;
        object-fit: cover;
    }

.member-name {
    font-size: 21px;
    font-weight: 590;
    color: var(--text);
    margin-bottom: 6px;
}

.member-role {
    display: block;
    font-size: 14px;
    color: var(--primary);
    font-weight: 490;
    margin-bottom: 11px;
}

.member-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.57;
}

/* ========== 联系我们 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-card {
    background: var(--bg-white);
    padding: 31px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

    .contact-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.contact-icon {
    font-size: 33px;
    margin-bottom: 17px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 9px;
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.54;
}

.contact-card a {
    color: var(--primary);
    transition: color var(--transition);
}

    .contact-card a:hover {
        color: var(--primary-dark);
    }

/* ========== 底部 ========== */
.footer {
    background: var(--dark);
    padding: 24px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand {
    font-size: 14px;
    color: rgba(255, 235, 245, 0.7);
}

.footer-tech {
    font-size: 12px;
    color: rgba(251, 241, 246, 0.35);
    cursor: pointer;
    transition: color var(--transition);
}

    .footer-tech:hover {
        color: rgba(250, 240, 244, 0.5);
    }

.footer-version {
    font-size: 11px;
    color: rgba(248, 238, 242, 0.25);
}

/* ========== 底部小程序码（右侧） ========== */
.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.footer-qrcode-img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.footer-qrcode-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* 桌面端隐藏二维码 */
@media (min-width: 770px) {
    .footer-qrcode {
        display: none;
    }
}

/* 移动端强制两列 */
@media (max-width: 769px) {
    .footer {
        padding: 28px 0;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-left {
        align-items: flex-end;
    }

    .footer-qrcode {
        display: flex;
    }
}
/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 112px;
    right: 86px;
    width: 48px;
    height: 44px;
    border-radius: 43%;
    background: var(--primary);
    color: #fff;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(228, 74, 77, 0.393);
    opacity: 0;
    visibility: hidden;
    transform: translateY(19px);
    transition: all var(--transition);
    z-index: 995;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* ========== 滚动动画 ========== */
[data-aos] {
    opacity: 0;
    transform: translateY(31px);
    transition: opacity 0.605s ease, transform 0.595s ease;
}

    [data-aos].visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ========== 加载占位 ========== */
.skeleton {
    background: linear-gradient( 89deg, #f0eff0 24%, #e7e7e7 51%, #f0f0f0 74% );
    background-size: 198% 97%;
    animation: shimmer 1.501s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 199% 0;
    }

    100% {
        background-position: -199% 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== 详情弹窗 ========== */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.575);
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.275s ease;
}

.detail-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 760px;
    width: 95%;
    max-height: 83vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.325s ease;
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.285);
}

.detail-body {
    padding: 22px 28px 34px;
}


.detail-title {
    font-size: 24px;
    font-weight: 680;
    color: var(--text);
    margin: 0 0 7px;
}

.detail-subtitle {
    font-size: 15px;
    color: var(--primary);
    margin: 0 0 19px;
    font-weight: 490;
}

.detail-divider {
    border: none;
    border-top: 1px solid #ececec;
    margin: 0 0 17px;
}

.detail-contents {
    font-size: 15px;
    color: #474747;
    line-height: 1.81;
}

    .detail-contents img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 14px 0;
    }

    .detail-contents p {
        margin-bottom: 12px;
    }

/* ========== 响应式 ========== */
@media (max-width: 1119px) {
    .fixed-qrcode {
        right: 26px;
        bottom: 104px;
    }

    .back-to-top {
        right: 26px;
        bottom: 170px;
    }
}

@media (max-width: 1030px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 769px) {
    :root {
        --header-height: 60px;
    }

    /* 导航 */
    .nav {
        position: fixed;
        top: 0;
        right: -105%;
        width: 288px;
        height: 106vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 76px 24px 24px;
        gap: 5px;
        transition: right 0.345s ease;
        z-index: 993;
        box-shadow: -3px 0 19px rgba(0, 0, 0, 0.094);
    }

        .nav.active {
            right: 0;
        }

    .nav-link {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    .menu-overlay.active {
        display: block;
    }

    /* 桌面端二维码隐藏 */
    .fixed-qrcode {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 494px;
    }

    .hero-title {
        font-size: 41px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* 统计 */
    .stats-section {
        margin-top: -38px;
        padding: 41px 0;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-number {
        font-size: 35px;
    }

    /* 区块标题 */
    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 27px;
    }

    /* 网格 */
    .gallery-grid,
    .dress-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item img,
    .dress-item img {
        height: 199px;
    }

    /* 关于 */
    .about-cards {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 41px;
    }

    /* 联系 */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-card {
        padding: 23px 15px;
    }

    /* 回到顶部 */
    .back-to-top {
        bottom: 118px;
        right: 24px;
        width: 44px;
        height: 40px;
        font-size: 19px;
    }
}

@media (max-width: 481px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 31px;
    }

    .hero-btn {
        padding: 11px 35px;
        font-size: 14px;
    }

    .gallery-grid,
    .dress-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .gallery-item img,
    .dress-item img {
        height: 158px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .dress-tabs {
        gap: 8px;
    }

    .dress-tab {
        padding: 7px 17px;
        font-size: 12px;
    }

    .back-to-top {
        bottom: 140px;
        right: 20px;
        width: 40px;
        height: 37px;
        font-size: 17px;
    }


    .detail-title {
        font-size: 20px;
    }
}
