/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding-top: 70px;
    min-height: 100vh;
}

/* ========== 导航栏 ========== */
.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.08);
    z-index: 1000;
    padding: 12px 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #80abce;
    text-decoration: none;
    margin-right: auto;
}

.logo i {
    font-size: 28px;
}

.logo img {
    height: 28px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-right: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #80abce;
    border-bottom-color: #80abce;
}

.btn-order-nav {
    background: #80abce;
    color: #fff !important;
    padding: 10px 28px !important;
    border-radius: 40px !important;
    border-bottom: none !important;
    box-shadow: 0 4px 12px rgba(128, 171, 206, 0.3);
}

.btn-order-nav:hover {
    background: #6a9ab8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 171, 206, 0.4);
    color: #fff !important;
}

.admin-icon {
    font-size: 22px;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    color: #555;
    margin-left: 0;
}

.admin-icon:hover {
    opacity: 1;
    color: #80abce;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    margin-left: 12px;
}

/* 移动端侧边栏 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 70px 25px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar a {
    display: block;
    padding: 14px 0;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.mobile-sidebar a:hover {
    color: #80abce;
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.overlay.show {
    display: block;
}

/* 语言切换器 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 15px;
    margin-right: 8px;
    font-size: 12px;
    color: #aaa;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    transition: all 0.3s;
    border-radius: 4px;
}

.lang-btn:hover {
    color: #80abce;
    background: rgba(128, 171, 206, 0.1);
}

.lang-btn.active {
    color: #80abce;
    font-weight: 700;
}

/* ========== 页面标题 ========== */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #80abce 0%, #a8d0e6 100%);
    color: #fff;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

.header-divider {
    width: 80px;
    height: 3px;
    background: #fff;
    margin: 20px auto;
    border-radius: 3px;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* ========== 卡片样式 ========== */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(128, 171, 206, 0.1);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    color: #80abce;
    font-size: 32px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: #80abce;
    color: #fff;
    box-shadow: 0 4px 12px rgba(128, 171, 206, 0.3);
}

.btn-primary:hover {
    background: #6a9ab8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 171, 206, 0.4);
}

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

.btn-secondary:hover {
    background: #80abce;
    color: #fff;
}

.btn-success {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #8e1e1e;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 15px;
    background: #fafbfc;
}

.form-control:focus {
    outline: none;
    border-color: #80abce;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(128, 171, 206, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========== 网格系统 ========== */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    color: #999;
}

/* ========== 页脚 ========== */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ccc;
    padding: 50px 20px 30px;
    text-align: center;
    margin-top: 60px;
}

footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s;
}

footer a:hover {
    color: #80abce;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: #80abce;
    margin: 20px auto;
    border-radius: 2px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .admin-icon {
        position: absolute;
        right: 60px;
        top: 18px;
    }

    .lang-switch {
        position: absolute;
        right: 100px;
        top: 18px;
        margin: 0;
    }

    body {
        padding-top: 60px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo span {
        font-size: 18px;
    }

    .page-header {
        padding: 40px 20px 30px;
    }
}
