/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #3a7bd5;
    --primary-dark: #2a5db0;
    --secondary: #00d2ff;
    --accent: #f5576c;
    --success: #43e97b;
    --warning: #ffa726;
    --danger: #e74c3c;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark);
}
.section-title i { color: var(--primary); margin-right: 10px; }
.subsection-title {
    text-align: center;
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--dark);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(58,123,213,0.3); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff8a5c); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(245,87,108,0.3); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-info { background: var(--primary); color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn.active { background: var(--primary); color: #fff; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0 20px;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}
.logo i { color: var(--primary); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}
.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--primary);
    color: #fff;
}
.nav-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}
.hero-content { position: relative; z-index: 2; }
.hero-avatar { margin-bottom: 20px; }
.hero-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-title { font-size: 1.3rem; color: rgba(255,255,255,0.8); margin-bottom: 15px; }
.hero-intro { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* 浮动动画 */
.hero-bg-animation { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite;
}
.shape-1 { width: 300px; height: 300px; background: var(--primary); top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--secondary); top: 60%; right: 10%; animation-delay: -5s; }
.shape-3 { width: 150px; height: 150px; background: var(--accent); bottom: 10%; left: 30%; animation-delay: -10s; }
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 30px) rotate(270deg); }
}

/* ===== 关于我 ===== */
.about-section { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.about-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.about-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.about-card h3 i { margin-right: 8px; }

/* ===== 视频区域 ===== */
.video-section { background: var(--light); }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}
.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.video-card:hover { transform: translateY(-5px); }
.video-wrapper { position: relative; padding-top: 56.25%; }
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-info { padding: 20px; }
.video-info h3 { margin-bottom: 8px; color: var(--dark); }
.video-info p { color: var(--gray); font-size: 0.9rem; }

/* ===== 招聘区域 ===== */
.jobs-section { background: #fff; }
.jobs-list { display: flex; flex-direction: column; gap: 20px; }
.job-card {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.job-card:hover { box-shadow: var(--shadow); }
.job-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.job-header h3 { color: var(--dark); }
.job-salary {
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}
.job-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.job-meta i { color: var(--primary); margin-right: 5px; }
.job-desc { margin-bottom: 10px; }
.job-requirements, .job-benefits { margin-top: 10px; }
.job-requirements h4, .job-benefits h4 { color: var(--primary); margin-bottom: 5px; }

/* 薪资政策 */
.salary-policy-section { margin-top: 50px; }
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.policy-card {
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    padding: 25px;
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
}
.policy-card h4 { color: var(--primary); margin-bottom: 10px; }

/* ===== 留言板 ===== */
.message-section { background: var(--light); }
.message-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.message-form-wrapper h3 { margin-bottom: 15px; color: var(--dark); }
.form-hint { color: var(--gray); margin-bottom: 15px; font-size: 0.9rem; }
.message-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 留言列表 */
.message-list { display: flex; flex-direction: column; gap: 20px; }
.message-item {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.message-nickname { font-weight: 600; color: var(--dark); }
.message-nickname i { color: var(--primary); margin-right: 5px; }
.message-time { color: var(--gray); font-size: 0.85rem; }
.message-content { color: #444; line-height: 1.8; }
.message-reply {
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.reply-label { color: var(--primary); font-weight: 600; }

/* 评论 */
.comment-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.btn-toggle-comments {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-toggle-comments:hover { border-color: var(--primary); color: var(--primary); }
.comments-list { margin: 10px 0; }
.comment-item {
    padding: 10px 15px;
    margin: 8px 0;
    background: var(--light);
    border-radius: 8px;
}
.comment-item.admin-comment { background: #f0f7ff; border-left: 3px solid var(--primary); }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-author i { color: var(--primary); }
.comment-time { color: var(--gray); font-size: 0.8rem; margin-left: 10px; }
.comment-text { margin-top: 5px; font-size: 0.9rem; }
.comment-form { margin-top: 10px; }
.comment-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.comment-input-row input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}
.comment-input-row input:first-child { width: 120px; }
.comment-input-row input:nth-child(2) { flex: 1; }

.view-all-messages { text-align: center; margin-top: 30px; }

/* ===== 大屏幕入口 ===== */
.bigscreen-entry { background: var(--dark); color: #fff; }
.bigscreen-cards { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.bigscreen-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 60px;
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
    transition: all 0.3s;
}
.bigscreen-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    color: #fff;
}
.bigscreen-card i { font-size: 3rem; margin-bottom: 15px; color: var(--secondary); }
.bigscreen-card h3 { margin-bottom: 8px; }
.bigscreen-card p { color: rgba(255,255,255,0.6); }

/* ===== 页脚 ===== */
.footer {
    background: var(--darker);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 30px 0;
}
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: #fff; }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }

/* ===== 提示框 ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* ===== 分页 ===== */
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.message-stats {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

/* ===== 后台管理样式 ===== */
.admin-body { display: flex; min-height: 100vh; background: #f0f2f5; }

/* 侧边栏 */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--dark), var(--darker));
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { font-size: 1.2rem; }
.sidebar-header h2 i { color: var(--secondary); }
.sidebar-nav { padding: 15px 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--secondary);
}
.nav-item i { width: 20px; text-align: center; }
.nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 10px 20px; }

/* 主内容区 */
.admin-main { flex: 1; margin-left: 250px; }
.admin-header {
    background: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-header h1 { font-size: 1.4rem; color: var(--dark); }
.admin-header h1 i { color: var(--primary); margin-right: 8px; }
.header-right { display: flex; align-items: center; gap: 15px; }
.admin-content { padding: 30px; }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.stat-info h3 { font-size: 1.8rem; color: var(--dark); }
.stat-info p { color: var(--gray); font-size: 0.9rem; }

/* 管理卡片 */
.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}
.admin-card h2 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.admin-card h2 i { color: var(--primary); margin-right: 8px; }

/* 管理表单 */
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-form .form-group { margin-bottom: 15px; }
.admin-form label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; font-size: 0.9rem; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 管理表格 */
.table-responsive { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}
.admin-table tr:hover { background: #fafbfc; }

/* 留言管理 */
.message-manage-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}
.msg-manage-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.msg-nickname { font-weight: 600; }
.msg-time { color: var(--gray); font-size: 0.85rem; }
.msg-email { color: var(--gray); font-size: 0.85rem; }
.msg-ip { color: var(--gray); font-size: 0.8rem; }
.msg-manage-content { margin-bottom: 10px; line-height: 1.8; }
.msg-manage-reply {
    background: #f0f7ff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
}
.msg-manage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 10px;
}
.reply-form, .admin-comment-form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.reply-form textarea { width: 300px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.admin-comment-form input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; width: 250px; }
.msg-comments { margin: 10px 0; padding: 10px; background: var(--light); border-radius: 6px; }
.manage-comment-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.manage-comment-item.admin { background: #f0f7ff; padding: 5px; border-radius: 4px; }

/* 快捷操作 */
.quick-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.quick-btn {
    padding: 15px 25px;
    background: var(--light);
    border-radius: 8px;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.quick-btn i { font-size: 1.2rem; }

/* 最新留言 */
.recent-messages { }
.recent-message-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.recent-message-item:last-child { border-bottom: none; }
.msg-info { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.msg-info strong { color: var(--dark); }
.msg-time { color: var(--gray); font-size: 0.85rem; }
.recent-message-item p { color: var(--gray); font-size: 0.9rem; }
.empty-text { color: var(--gray); text-align: center; padding: 20px; }

/* 弹窗 */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-content h2 { margin-bottom: 20px; color: var(--dark); }
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}
.modal-close:hover { color: var(--danger); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    .hero h1 { font-size: 2rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    .message-form .form-row,
    .admin-form .form-row { grid-template-columns: 1fr; }
    .admin-sidebar { width: 60px; }
    .admin-sidebar .sidebar-header h2,
    .admin-sidebar .nav-item span { display: none; }
    .admin-sidebar .nav-item { padding: 12px 18px; justify-content: center; }
    .admin-main { margin-left: 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
    .comment-input-row { flex-wrap: wrap; }
    .comment-input-row input:first-child { width: 100%; }
}
