﻿:root {
    --primary: #0066cc;
    --secondary: #003366;
    --accent: #0099ff;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-left: 10px;
    }

.logo-icon {
    font-size: 2rem;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        position: relative;
        margin: 0 8px;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 4px;
            transition: all 0.3s ease;
            display: block;
            font-weight: 500;
        }

            nav ul li a:hover,
            nav ul li a.active {
                background-color: rgba(255,255,255,0.2);
            }

.dropdown-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    border-radius: 4px;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--dark);
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: block;
}

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        background-color: var(--light);
        color: var(--primary);
    }



/* 页脚 */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: var(--accent);
    }

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 12px;
    }

        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .footer-column ul li a:hover {
                color: white;
                padding-left: 5px;
            }

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.2rem;
    min-width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 管理面板 */
.admin-panel {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 50px 0;
}

    .admin-panel h2 {
        color: var(--secondary);
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #eee;
    }

.tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 25px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

    .tab-btn.active {
        background: white;
        border-color: #dee2e6;
        color: var(--primary);
        font-weight: 600;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--dark);
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.2);
    }

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

        .hero h2 {
            font-size: 2rem;
        }

    .section {
        padding: 60px 0;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col {
        margin-bottom: 15px;
    }
}