/**
 * 主样式文件
 * 苏州云启新程网络信息科技有限公司
 * 现代科技风格 - 科技蓝主题
 * 注意：CSS变量由 theme.php 动态生成，请勿在此修改
 */

/* ==================== 重置样式 ==================== */
* {
    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;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 通用容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 大屏幕适配 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media screen and (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

@media screen and (min-width: 2560px) { /* 2K */
    .container {
        max-width: 1800px;
    }
    html {
        font-size: 18px;
    }
}

@media screen and (min-width: 3200px) { /* 3K */
    .container {
        max-width: 2200px;
    }
    html {
        font-size: 20px;
    }
}

@media screen and (min-width: 3840px) { /* 4K */
    .container {
        max-width: 2600px;
    }
    html {
        font-size: 22px;
    }
}

.section {
    padding: 80px 0;
}

/* 大屏幕Section间距 */
@media screen and (min-width: 2560px) {
    .section {
        padding: 120px 0;
    }
}

@media screen and (min-width: 3840px) {
    .section {
        padding: 160px 0;
    }
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 大屏幕标题 */
@media screen and (min-width: 1920px) {
    .section-title {
        font-size: 42px;
    }
}

@media screen and (min-width: 2560px) {
    .section-title {
        font-size: 48px;
    }
}

@media screen and (min-width: 3840px) {
    .section-title {
        font-size: 56px;
    }
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* 大屏幕副标题 */
@media screen and (min-width: 1920px) {
    .section-subtitle {
        font-size: 22px;
        margin-bottom: 80px;
    }
}

@media screen and (min-width: 2560px) {
    .section-subtitle {
        font-size: 26px;
        margin-bottom: 100px;
    }
}

@media screen and (min-width: 3840px) {
    .section-subtitle {
        font-size: 32px;
        margin-bottom: 120px;
    }
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

/* 大屏幕按钮 */
@media screen and (min-width: 1920px) {
    .btn {
        padding: 14px 36px;
        font-size: 18px;
    }
}

@media screen and (min-width: 2560px) {
    .btn {
        padding: 16px 40px;
        font-size: 20px;
    }
}

@media screen and (min-width: 3840px) {
    .btn {
        padding: 20px 50px;
        font-size: 24px;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 大屏幕Logo */
@media screen and (min-width: 1920px) {
    .logo a {
        font-size: 28px;
    }
    .logo i {
        font-size: 32px;
    }
}

@media screen and (min-width: 2560px) {
    .logo a {
        font-size: 32px;
    }
    .logo i {
        font-size: 36px;
    }
}

@media screen and (min-width: 3840px) {
    .logo a {
        font-size: 40px;
    }
    .logo i {
        font-size: 44px;
    }
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

/* 大屏幕导航 */
@media screen and (min-width: 1920px) {
    .nav-menu {
        gap: 50px;
    }
}

@media screen and (min-width: 2560px) {
    .nav-menu {
        gap: 60px;
    }
    .nav-item .nav-link {
        font-size: 18px;
    }
}

@media screen and (min-width: 3840px) {
    .nav-menu {
        gap: 80px;
    }
    .nav-item .nav-link {
        font-size: 20px;
    }
}

.nav-item .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-item .nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.nav-item.active .nav-link {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== Banner区域 ==================== */
.banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 大屏幕Banner标题 */
@media screen and (min-width: 1920px) {
    .banner-title {
        font-size: 56px;
    }
}

@media screen and (min-width: 2560px) {
    .banner-title {
        font-size: 68px;
    }
}

@media screen and (min-width: 3840px) {
    .banner-title {
        font-size: 80px;
    }
}

.banner-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 大屏幕Banner副标题 */
@media screen and (min-width: 1920px) {
    .banner-subtitle {
        font-size: 28px;
        margin-bottom: 50px;
    }
}

@media screen and (min-width: 2560px) {
    .banner-subtitle {
        font-size: 36px;
        margin-bottom: 60px;
    }
}

@media screen and (min-width: 3840px) {
    .banner-subtitle {
        font-size: 44px;
        margin-bottom: 80px;
    }
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 卡片样式 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

/* 大屏幕卡片 */
@media screen and (min-width: 1920px) {
    .card {
        padding: 40px;
    }
}

@media screen and (min-width: 2560px) {
    .card {
        padding: 50px;
    }
}

@media screen and (min-width: 3840px) {
    .card {
        padding: 60px;
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* 大屏幕卡片图标 */
@media screen and (min-width: 1920px) {
    .card-icon {
        width: 70px;
        height: 70px;
    }
    .card-icon i {
        font-size: 32px;
    }
}

@media screen and (min-width: 2560px) {
    .card-icon {
        width: 80px;
        height: 80px;
    }
    .card-icon i {
        font-size: 36px;
    }
}

@media screen and (min-width: 3840px) {
    .card-icon {
        width: 100px;
        height: 100px;
    }
    .card-icon i {
        font-size: 44px;
    }
}

.card-icon i {
    font-size: 28px;
    color: #ffffff;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* 大屏幕卡片标题 */
@media screen and (min-width: 1920px) {
    .card-title {
        font-size: 26px;
    }
}

@media screen and (min-width: 2560px) {
    .card-title {
        font-size: 30px;
    }
}

@media screen and (min-width: 3840px) {
    .card-title {
        font-size: 36px;
    }
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 页脚样式 ==================== */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

/* 大屏幕页脚 */
@media screen and (min-width: 1920px) {
    .footer-section h3 {
        font-size: 24px;
    }
}

@media screen and (min-width: 2560px) {
    .footer-section h3 {
        font-size: 28px;
    }
    .footer-section p,
    .footer-section li {
        font-size: 18px;
    }
}

@media screen and (min-width: 3840px) {
    .footer-section h3 {
        font-size: 32px;
    }
    .footer-section p,
    .footer-section li {
        font-size: 20px;
    }
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.contact-info li,
.business-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==================== 页面头部Banner ==================== */
.page-header {
    background: var(--gradient-dark);
    color: #ffffff;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== 分页样式 ==================== */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
