/* 
   悦品荟官网 样式表
   遵循 Pro Max 视觉规范
*/

:root {
    /* 核心颜色变量 (同步自 App.vue) */
    --color-primary: #CA3B59;
    --color-primary-rgb: 202, 59, 89;
    --color-bg: #F2F4F5;
    --color-text-main: #363638;
    --color-text-sub: #8E8E93;
    --color-white: #ffffff;
    
    /* 渐变色 */
    --gradient-hero: linear-gradient(135deg, #CA3B59 0%, #fcac07 100%);
    --gradient-text: linear-gradient(135deg, #CA3B59 0%, #fcac07 100%);
    --gradient-silver: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    
    /* 阴影 */
    --shadow-card: 0 10px 40px rgba(0,0,0,0.04), 0 2px 10px rgba(0,0,0,0.02);
    --shadow-premium: 0px 4px 4px rgba(0, 0, 0, 0.25), 256px 177px 187px rgba(0, 0, 0, 0.05);
    
    /* 动画曲线 */
    --ease-physics: cubic-bezier(0.1, 0, 0, 1);
    --transition-speed: 0.3s;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #FAFAFA;
    background-image: 
        radial-gradient(at 0% 0%, rgba(202, 59, 89, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(252, 172, 7, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 增加平滑滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* 布局容器 */
.header-container, .hero-section, .features-section, .docs-section, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header 样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(242, 244, 245, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-sub);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--ease-physics), box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #fcac07 100%);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(202, 59, 89, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(202, 59, 89, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-text-main);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.hero-image-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(251, 194, 15, 0.25); /* 调整为金色微光 */
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(252, 172, 7, 0.3); /* 增强金色微光 */
    bottom: -50px;
    left: -50px;
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 194, 15, 0.4); /* 金色半透明边框 */
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(251, 194, 15, 0.05), var(--shadow-card);
    max-width: 350px;
    text-align: center;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.glass-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FBC20F 0%, #fcac07 100%); /* 金色文字渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card p {
    font-size: 14px;
    color: var(--color-text-sub);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

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

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

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s var(--ease-physics), box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(202, 59, 89, 0.15) 0%, rgba(252, 172, 7, 0.15) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-sub);
}

/* Docs Section */
.docs-section {
    padding: 100px 0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    margin-bottom: 100px;
}

.docs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.doc-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 24px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.8);
}

.doc-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.doc-item:active {
    transform: scale(0.98);
}

.doc-icon {
    font-size: 24px;
    margin-right: 15px;
}

.doc-name {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.arrow {
    color: var(--color-text-sub);
    transition: transform 0.2s ease;
}

.doc-item:hover .arrow {
    transform: translateX(5px);
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-sub);
}

.footer-info p {
    margin-bottom: 5px;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.beian-link {
    text-decoration: none;
    color: var(--color-text-sub);
    transition: color 0.2s ease;
}

.beian-link:hover {
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-sub);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* .btn 样式微调，支持 a 标签 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    .hero-actions {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    .nav {
        display: none; /* 移动端隐藏传统导航，优先展示内容 */
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0; /* 靠 margin 控制间距 */
    }
    .feature-card {
        padding: 24px;
        margin: 0 20px 32px 20px; /* 多加点外边距 */
    }
    .feature-card:last-child {
        margin-bottom: 0;
    }
    .docs-section {
        padding: 60px 20px;
    }
    .docs-list {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .glass-card {
        padding: 20px;
    }
    .feature-card {
        padding: 20px;
        margin: 0 15px 24px 15px; /* 多加点外边距 */
    }
}
