* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background: linear-gradient(135deg, #dc0000 0%, #b30000 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 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;
    gap: 15px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-cn {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-en {
    font-size: 11px;
    opacity: 0.9;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #dc0000;
}

.btn-login {
    background: #FFD700;
    border: none;
    color: #333;
    padding: 10px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* 用户信息显示 */
#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

#username-display {
    font-weight: bold;
    color: #FFD700;
}

/* 英雄区 */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #8B0000 0%, #4a0000 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 600"><rect fill="%23ffffff" opacity="0.03" width="1200" height="600"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 0, 0, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title-white {
    color: white;
}

.hero-title-yellow {
    color: #FFD700;
}

.hero-subtitle {
    font-size: 20px;
    color: white;
    margin-bottom: 50px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #FFD700;
    border: none;
    color: #333;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 36px;
    color: #dc0000;
    margin-bottom: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-description p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    color: #dc0000;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    transform: rotate(45deg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* 公司公告 */
.announcements {
    padding: 100px 0;
    background: white;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    background: white;
    border: 2px solid #dc0000;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
}

.announcement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(220, 0, 0, 0.1);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.announcement-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: #dc0000;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.announcement-date {
    color: #999;
    font-size: 14px;
}

.announcement-content {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

/* 项目展示 */
.projects {
    padding: 100px 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-online {
    background: #28a745;
}

.status-dev {
    background: #007bff;
}

.status-test {
    background: #ffc107;
    color: #333;
}

.project-info {
    padding: 25px;
}

.project-name {
    font-size: 24px;
    color: #dc0000;
    font-weight: bold;
    margin-bottom: 15px;
}

.project-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-btn {
    width: 100%;
    background: #dc0000;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.project-btn:hover {
    background: #b30000;
    transform: scale(1.02);
}

/* 员工公示 */
.employees {
    padding: 100px 0;
    background: white;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.employees-table thead {
    background: #dc0000;
    color: white;
}

.employees-table th {
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
}

.employees-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.employees-table tbody tr:hover {
    background: #fff5f5;
}

.employees-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.employees-table tbody tr:nth-child(even):hover {
    background: #fff5f5;
}

.employees-table td {
    padding: 18px 20px;
    color: #333;
    font-size: 15px;
}

/* 用户留言 */
.messages {
    padding: 100px 0;
    background: #f8f9fa;
}

.message-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-title {
    font-size: 28px;
    color: #dc0000;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc0000;
    box-shadow: 0 0 0 3px rgba(220, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: #dc0000;
    border: none;
    color: white;
    padding: 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #8B0000 0%, #4a0000 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.qrcode {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qrcode-placeholder {
    color: #666;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover {
    color: #dc0000;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #dc0000;
    color: white;
    border-color: #dc0000;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 968px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .message-form-container {
        padding: 30px 20px;
    }
}
