/* ========================================
   时壹女装 - 简约轻奢风格
   ======================================== */

/* CSS 变量定义 */
:root {
    --primary-color: #8B7355;
    --primary-light: #C9A961;
    --secondary-color: #D4AF37;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #888888;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-menu a {
    font-size: 15px;
    color: var(--text-medium);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F0E8 100%);
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary-color);
    font-style: italic;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    margin-left: 16px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   新品展示（首页）
   ======================================== */
.featured-section {
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    text-align: center;
}

.product-name {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

.product-price .original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ========================================
   品牌特色
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .feature-icon svg {
    stroke: white;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ========================================
   商品展示页
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F0E8 100%);
    padding: 160px 24px 80px;
    text-align: center;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--text-medium);
    font-size: 16px;
}

/* ========================================
   关于我们页
   ======================================== */
.about-section {
    max-width: 900px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: -24px;
    bottom: -24px;
    border: 2px solid var(--primary-light);
    z-index: -1;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
    text-align: justify;
}

.info-list {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    margin-bottom: 16px;
}

.info-label {
    width: 80px;
    color: var(--text-light);
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: var(--text-dark);
}

/* ========================================
   联系方式页
   ======================================== */
.contact-section {
    max-width: 800px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
}

.contact-info {
    padding-right: 32px;
}

.contact-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 18px;
    color: var(--text-dark);
}

.contact-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 4px;
}

.contact-form {
    background: var(--bg-light);
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 64px 24px 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.beian {
    margin-top: 8px;
}

.beian a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.beian a:hover {
    color: var(--primary-light);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-image::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 64px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 24px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 16px;
    }

    .section {
        padding: 64px 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 占位图片样式 */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--text-light);
    font-size: 14px;
}
