/* 合肥驭星信息科技有限公司 - 官网样式 */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --text: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

/* 导航栏 */
.navbar {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* 汉堡按钮 - 默认隐藏 */
.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--highlight);
}

.nav-close {
    display: none;
}

/* 移动端 navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0.9rem 0;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .navbar-inner {
        position: relative;
    }

    .logo {
        font-size: 1rem;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: var(--primary);
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-close {
        display: block !important;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        color: var(--white);
        cursor: pointer;
        font-size: 1rem;
        padding: 0.5rem;
    }

    .nav-close:hover {
        color: var(--highlight);
    }

    .nav-menu .nav-links {
        margin-top: 2.5rem;
    }
}

/* 主内容区 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {

}

/* 页脚 */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover {
    color: var(--highlight);
}

/* 首页 Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;

    position: relative;
    overflow: hidden;
}

.hero-home {
    padding: 5rem 2rem 5.5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.2), transparent),
                radial-gradient(circle at 80% 80%, rgba(15, 52, 96, 0.4), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--highlight);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* 首页 - 介绍区块 */
.intro-section {
    margin-top: 3rem;
}

.intro-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-more {
    display: inline-block;
    color: var(--highlight);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: gap 0.2s;
}

.link-more:hover {
    text-decoration: underline;
}

/* 首页 - 业务卡片 */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem !important;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: block;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--highlight);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* 首页 - CTA 区块 */
.cta-section {
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: white;
    color: var(--primary) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

/* 卡片/区块 */
.section {
    margin: 3rem 0;
}

.section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* 关于我们 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* 联系方式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--highlight);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* 隐私政策 */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-home {
        padding: 3.5rem 1.5rem 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}
