/* 企业官网样式 - 启名星/名启星配色方案 */

/* ==================== CSS 变量定义 ==================== */
:root {
    /* 主题色 */
    --color-primary: #FF7E6B;
    --color-primary-light: #FFB6A3;
    --color-primary-dark: #E85D4A;
    --color-primary-gradient: linear-gradient(135deg, #FF7E6B 0%, #FFB6A3 100%);
    --color-primary-bg: #FFE8E5;
    --color-primary-border: #FF7E6B;

    /* 文字色 */
    --color-text-primary: #333;
    --color-text-secondary: #666;
    --color-text-tertiary: #999;
    --color-text-white: #fff;
    --color-text-title: #2C405A;
    --color-text-subtitle: #555555;
    --color-text-paragraph: #3F536E;

    /* 背景色 */
    --color-bg-white: #ffffff;
    --color-bg-gray: #f8f8f8;
    --color-bg-light: #f7f8fa;
    --color-bg-hover: #f1f1f1;
    --color-bg-section: #ffffff;

    /* 边框色 */
    --color-border: #e5e6eb;
    --color-border-light: #f0f0f0;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 16px rgba(255, 126, 107, 0.2);
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    font-size: 16px;
    overflow-x: hidden;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.navbar-menu a {
    color: var(--color-text-title);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--color-primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-title);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== 页面容器 ==================== */
.page-container {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* ==================== 英雄区域 (Hero Section) ==================== */
.hero {
    background: var(--color-primary-gradient);
    color: var(--color-text-white);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-text-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 107, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
}

.btn-outline:hover {
    background: var(--color-text-white);
    color: var(--color-primary);
}

/* ==================== 内容区域 ==================== */
.section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary-gradient);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 24px auto 0;
}

/* ==================== 特性卡片 ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

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

.feature-card p {
    color: var(--color-text-paragraph);
    line-height: 1.8;
}

/* ==================== 产品展示 ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--color-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--color-text-white);
}

.product-content {
    padding: 32px;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 12px;
}

.product-card p {
    color: var(--color-text-paragraph);
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 14px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ==================== 关于我们 ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text-paragraph);
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--color-bg-light);
    border-radius: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.about-image {
    width: 100%;
    height: 400px;
    background: var(--color-primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--color-text-white);
    box-shadow: var(--shadow-md);
}

/* ==================== 联系表单 ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: 16px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--color-text-paragraph);
    font-size: 15px;
}

.contact-form {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-text-title);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--color-bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--color-text-title);
    color: var(--color-text-white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--color-text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--color-bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .section-title h2 {
        font-size: 28px;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 24px;
    }
}



