/* 前台页面样式 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.frontend-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo img {
    height: 80px;
    margin-right: 10px;
}

/* Navigation */
.main-nav .nav-menu {
    display: flex;
    gap: 30px;
}

.main-nav .nav-menu > li {
    position: relative;
}

.main-nav .nav-menu > li > a {
    display: block;
    padding: 25px 0;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav .nav-menu > li:hover > a,
.main-nav .nav-menu > li.active > a {
    color: #3498db;
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.main-nav .nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #666;
    transition: all 0.3s;
}

.sub-menu li a:hover {
    background: #f5f7fa;
    color: #3498db;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: #666;
}

.btn-login,
.btn-admin,
.btn-logout {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login {
    background: #3498db;
    color: #fff;
}

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

.btn-admin {
    background: #27ae60;
    color: #fff;
}

.btn-admin:hover {
    background: #219a52;
}

.btn-logout {
    background: #e74c3c;
    color: #fff;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px - 300px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-link {
    color: #3498db;
    font-weight: 500;
    transition: color 0.3s;
}

.feature-link:hover {
    color: #2980b9;
}

/* Stats Section */
.stats-section {
    background: #2c3e50;
    color: #fff;
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3498db;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Page Content */
.page-content {
    padding: 60px 20px;
    background: #f5f7fa;
    min-height: 400px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.module-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.module-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.placeholder-content {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.placeholder-content p {
    color: #999;
    margin-bottom: 20px;
}

/* About Page */
.about-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.about-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    color: #555;
    list-style-type: disc;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info,
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info h2,
.contact-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 24px;
    margin-right: 15px;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    color: #666;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.frontend-footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: #bdc3c7;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

/* 版权信息区域 */
.footer-bottom {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    padding: 25px 20px;
    text-align: center;
    font-size: 13px;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* 联系信息 - 一行显示 */
.footer-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-info span {
    color: #ecf0f1;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.footer-contact-info span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
}

.footer-copyright {
    margin: 5px 0;
    color: #95a5a6;
}

.footer-bottom .footer-extra {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
    color: #7f8c8d;
}

.footer-bottom a {
    color: #3498db;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #5dade2;
}

/* Overview Section */
.overview-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.overview-content {
    background: #fff;
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.overview-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .module-grid,
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .about-content,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .overview-content {
        padding: 25px;
    }
    
    .overview-content p {
        font-size: 16px;
    }
}
