/* 全局样式 */
:root {
    --primary-color: #1a56db;
    --secondary-color: #0f2c6e;
    --accent-color: #f59e0b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcement-bar {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-left: 8px;
}

.nav-toggler {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 5px;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* 页面主体 */
.main-content {
    margin: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-title .divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

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

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-col p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: white;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

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

.copyright {
    background-color: rgba(0,0,0,0.3);
    padding: 15px 0;
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 技术优势卡片 */
.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tech-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 优势部分样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-toggler {
        display: block;
    }
    
    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-container.active {
        max-height: 500px;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* 联系方式样式 */
.contact-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form {
    margin-top: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 更新: index.php 需要引用这些CSS样式 */

/* 新增: 卡片间距设置 */
.tech-cards {
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 40px; /* 增加卡片间距 */
}

/* 新增: 卡片内间距优化 */
.tech-card {
    padding: 40px 30px; /* 增大内边距 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* 更柔和的阴影效果 */
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 新增: 图标区域样式 */
.tech-icon-container {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(26, 86, 219, 0.05) 100%);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.tech-icon {
    font-size: 2.5rem; /* 略微增大图标 */
    color: var(--primary-color);
}

/* 新增: 标题样式 */
.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.tech-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* 新增: 正文内容间距 */
.tech-card p {
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--dark-color);
    font-size: 1.05rem;
}

/* 新增: 分类标题间距 */
.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-color);
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* 新增: 响应式间距优化 */
@media (max-width: 992px) {
    .tech-cards {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .tech-cards {
        gap: 25px;
    }
    
    .tech-card {
        padding: 30px 20px;
    }
    
    .tech-icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .tech-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .tech-cards {
        gap: 20px;
    }
    
    .tech-card {
        padding: 25px 15px;
    }
}

/* 英雄区域样式优化 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f2c6e 0%, #1a56db 100%);
    color: #fff;
    padding: 120px 0;
    overflow: hidden;
    /*min-height: 80vh;*/
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZyBmaWxsPSJub25lIiBzdHJva2U9IiMwMDg0RTUiIG9wYWNpdHk9IjAuMSI+PHBhdGggZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHBhdGggZD0iTTUwIDB2MTAwTTAgNTBoMTAwIi8+PC9nPjwvc3ZnPg==') repeat;
    opacity: 0.15;
    pointer-events: none;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particles-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f5f7fa, rgba(245, 247, 250, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.highlight {
    color: #FFD700;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFD700;
    transform: scaleX(0.8);
    transition: all 0.3s ease;
}

.hero-title:hover .highlight::after {
    transform: scaleX(1);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #FFD700;
    color: #0f2c6e;
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background: transparent;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* 几何元素装饰 */
.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    top: 30%;
    right: 20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.15);
    animation: float 8s infinite ease-in-out;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 215, 0, 0.15);
}

.triangle {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(26, 86, 219, 0.1);
    animation: float 10s infinite ease-in-out 1s;
}

.square {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 215, 0, 0.1);
    transform: rotate(15deg);
    animation: rotate 20s infinite linear;
}

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

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .circle {
        display: none;
    }
    
    .triangle {
        display: none;
    }
    
    .square {
        display: none;
    }
}