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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-y: scroll;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.2rem;
    opacity: 0.8;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fdbb2d;
    transform: translateY(-2px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1a2a6c;
    color: white;
}

.btn-primary:hover {
    background: #2a3a7c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

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

.btn-secondary:hover {
    background: white;
    color: #1a2a6c;
    transform: translateY(-3px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    opacity: 0.8;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.features {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    padding: 2rem 0;
}

/* 轮播容器 - 三幅图像并排撑满 */
.carousel-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    width: 100%;
    gap: 15px;
    padding: 0;
    box-sizing: border-box;
}

/* 轮播项 - 三幅图像均分 */
.carousel-item {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-item.carousel-main {
    flex: 1.2;
}

.carousel-item .feature-card {
    width: 100%;
    height: 100%;
}

/* 轮播控制按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2.2rem;
    color: #1a2a6c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 20;
    line-height: 1;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #1a2a6c;
    color: white;
}

.feature-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.8) 0%, rgba(178, 31, 31, 0.6) 100%);
    z-index: 1;
}

.feature-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.feature-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: white;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 80%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    width: 30px;
    border-radius: 6px;
    background: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a2a6c;
}

.cases {
    padding: 5rem 2rem;
    background: #f5f5f5;
}

.cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a2a6c;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.case-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-image-container:hover img {
    transform: scale(1.05);
}

.case-image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.case-card:hover .case-image-overlay {
    transform: scale(1.1);
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a2a6c;
}

.case-content p {
    margin-bottom: 1rem;
    color: #666;
}

.case-content a {
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.case-content a:hover {
    color: #b21f1f;
}

.download {
    padding: 5rem 2rem;
    background: white;
    flex-grow: 1;
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a2a6c;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.version-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.version-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a2a6c;
}

.version-info p {
    margin-bottom: 1rem;
    color: #666;
}

.btn-download {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1a2a6c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-download:hover {
    background: #2a3a7c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

.version-history {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.version-history h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a2a6c;
}

.version-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.version-item:hover {
    background: rgba(26, 42, 108, 0.05);
}

.version-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a2a6c;
}

.version-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.version-item a {
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.version-item a:hover {
    color: #b21f1f;
}

.about {
    padding: 5rem 2rem;
    background: #f5f5f5;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a2a6c;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: #666;
}

.btn-admin {
    display: block;
    width: 200px;
    margin: 2rem auto 0;
    padding: 0.8rem 1.5rem;
    background: #1a2a6c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: #2a3a7c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

footer {
    background: #1a2a6c;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-about {
    text-align: left;
}

.footer-about h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-about p:first-of-type {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* 登录页面样式 */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

.login-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a2a6c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a2a6c;
    box-shadow: 0 0 0 2px rgba(26, 42, 108, 0.2);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: #1a2a6c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #2a3a7c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

/* 管理页面样式 */
.admin-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 100px auto 0;
}

.admin-container h2 {
    margin-bottom: 2rem;
    color: #1a2a6c;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.admin-section h3 {
    margin-bottom: 1.5rem;
    color: #1a2a6c;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-height: 200px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1a2a6c;
    box-shadow: 0 0 0 2px rgba(26, 42, 108, 0.2);
}

.btn-submit {
    padding: 0.8rem 1.5rem;
    background: #1a2a6c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2a3a7c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

.btn-logout {
    position: absolute;
    top: 1rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .carousel-item.carousel-left,
    .carousel-item.carousel-right {
        display: none;
    }
    
    .carousel-item.carousel-main {
        flex: none;
        width: 90%;
        max-width: 700px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .carousel-item.carousel-main {
        width: 95%;
        height: 350px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-wrapper {
        padding: 0;
        gap: 10px;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .download-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
    
    .login-form {
        padding: 2rem;
    }
}