:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --bg-light: #ecf0f1;
    --bg-dark: #2c3e50;
    --aigc-color: #9b59b6;
    --rewrite-color: #f39c12;
    --assistant-color: #1abc9c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f0f4f429;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #df3434;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

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

.nav-links i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 15px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    z-index: 1001;
}

.nav-links li:hover .dropdown {
    display: grid;
}

.dropdown-item {
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-size: 1.2rem;
}

/* 头部横幅 */
.header-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('/template/aigc/images/banner.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.header-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.header-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 通知栏 */
.notification-bar {
    background: white;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.notification {
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-block;
    padding: 5px 15px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 20px;
}

.notification i {
    margin-right: 5px;
}

/* 服务选择区域 */
.services-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark);
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #222;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.service-btn.aigc {
    background: var(--aigc-color);
    color: white;
}

.service-btn.rewrite {
    background: var(--rewrite-color);
    color: white;
}

.service-btn.assistant {
    background: var(--assistant-color);
    color: white;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.service-options {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.service-options.active {
    display: grid;
}

.option-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
}

.option-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
}

.service-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.detection-btn {
    background: linear-gradient(135deg,  #b0cdbb, #e31818);
    color: white;
}

.rewrite-btn {
    background: linear-gradient(135deg, var(--secondary), #f312aa);
    color: white;
}

.assistant-btn {
    background: linear-gradient(135deg, #b1cefd, rgba(0,0,0,.9));
    color: white;
}

.service-content {
    display: none;
    gap: 20px;
    margin-top: 20px;
}

.service-content.active {
    display: grid;
}

/* 不同的网格布局 */
.detection-content {
    grid-template-columns: repeat(3, 1fr);
}

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

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

.service-card {
    background: rgb(0 82 217 / 4%);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

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

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.submit-btn {
    padding: 10px 20px;
    background:#029c4aa8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.submit-btn:hover {
    background: #2980b9;
}

/* 功能介绍部分 */
.features-section {
    background: white;
    padding: 4rem 1rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    background: rgb(0 82 217 / 4%);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: #666;;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-box ul {
    list-style: none;
}

.feature-box li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.feature-box li i {
    color: var(--secondary);
    margin-right: 10px;
    margin-top: 5px;
}

/* 合作单位 */
.partner-scroll-container {
    overflow: hidden;
    position: relative;
    margin: 30px 0;
}

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

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

.partner-scroll {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    margin-bottom: 25px; /* 增加每排之间的间距 */
}

.partner-scroll.reversed {
    animation: scrollReversed 30s linear infinite;
}

.partner-logo {
    flex-shrink: 0;
    padding: 0px 0px;
    margin: 0 10px;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollReversed {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* 底部区域 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--secondary);
}

.qrcode {
    text-align: center;
}

.qrcode img {
    max-width: 150px;
    margin-bottom: 15px;
    border: 5px solid white;
    border-radius: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}