/* ==========================================================================
   GEO ASSISTANT - SWISS MODERN MINIMALISM DESIGN SYSTEM (minimal.css)
   ========================================================================== */

/* 1. 字体导入 - Outfit (标题) & Work Sans (正文) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

/* 2. 设计系统变量定义 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc; /* 亮灰白 */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    --accent-color: #0284c7; /* Sky 600 */
    --accent-hover: #0369a1; /* Sky 700 */
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. 基础重置 & 全局样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.625;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 4. 经典排版 Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.25rem; color: var(--text-secondary); }
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover { color: var(--accent-color); }
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 5. 简约网格与响应式容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 间距工具 */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
.bg-light { background-color: var(--bg-secondary); }
.text-center { text-align: center; }

/* 6. 极简按钮 Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* 7. 导航栏 (Header / Menu) */
.header-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.975rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* 二级下拉菜单 (纯CSS) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 160px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* 导航搜索框 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.search-field {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    width: 150px;
    transition: var(--transition-base);
}

.search-field:focus {
    width: 200px;
    border-color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* 手机端汉堡按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-base);
}

/* 8. 首页 Banner (轮播) */
.hero-banner {
    position: relative;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

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

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* 9. 关于我们 About Section */
.about-grid {
    align-items: center;
}
.about-img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.about-text h3 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

/* 10. 产品/服务/案例 卡片设计 (Products & Cases) */
.section-title {
    margin-bottom: 3.5rem;
}
.section-title h3 {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tab-link {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.tab-link:hover, .tab-link.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-muted);
}

.card-img-wrapper {
    position: relative;
    padding-top: 60%; /* 5:3 宽高比 */
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.03);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.card-price {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

/* 11. 新闻动态 News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-base);
}

.news-item:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.news-thumb {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-content {
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 12. 合作伙伴 Partners */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.partner-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    transition: var(--transition-base);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-base);
}

.partner-item:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 13. 极简页脚 Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-about img {
    height: 36px;
    margin-bottom: 1.25rem;
}

.footer-about p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: var(--text-secondary);
}

.footer-links li a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.copyright a {
    color: var(--text-muted);
}
.copyright a:hover {
    color: var(--text-primary);
}

/* 14. 响应式适配媒体查询 Breakpoints */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.25rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    
    /* 移动端菜单显示逻辑 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);
        display: none; /* 触发JS展开或利用:target / 类切换 */
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        margin-left: 1rem;
        padding-left: 0.5rem;
        transform: none;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .news-thumb {
        width: 100%;
        height: 180px;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
}
