/* 基础样式重置 */
* {
    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;
    background-color: #f8f9fa; /* 更浅的背景色 */
    color: #2c3e50; /* 深蓝色文本 */
}

/* 认证容器样式 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    background-color: transparent;
    border: 1px solid #dee2e6; /* 扁平化边框 */
    border-radius: 8px;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff; /* 蓝色标题 */
    font-weight: 500;
}

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

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"] {
    width: 79%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: content-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 移除number类型输入框的上下箭头 */
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-group button {
    width: 40%;
    padding: 12px;
    background-color: #007bff; /* 蓝色按钮 */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 验证码输入框样式 */
.verification-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-input input {
    flex: 1;
    margin: 0;
}

.verification-input button {
    width: auto;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 13px;
    min-width: 100px;
    height: fit-content;
    align-self: flex-start;
}

.verification-input button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.verification-input button:disabled:hover {
    background-color: #6c757d;
}

.form-group button:hover {
    background-color: #0056b3; /* 深蓝色 hover */
}

/* 链接样式 */
.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #007bff; /* 蓝色链接 */
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* 提示消息样式 - 高对比度优化 */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
}

.alert-success {
    color: #30D158;
    background: rgba(52, 199, 89, 0.2);
    border-color: #32C759;
}

.alert-error {
    color: #FF453A;
    background: rgba(255, 45, 85, 0.2);
    border-color: #FF2D55;
}

.alert-info {
    color: #0A84FF;
    background: rgba(0, 122, 255, 0.2);
    border-color: #007AFF;
}


/* 管理员后台样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.admin-nav a {
    margin-left: 20px;
    color: #007bff; /* 蓝色导航链接 */
    text-decoration: none;
    font-weight: 500;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.admin-welcome {
    text-align: center;
    padding: 50px 0;
}

/* 表格样式 - 高对比度优化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(28, 28, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #48484A;
}

th {
    background: rgba(44, 44, 46, 0.9);
    font-weight: 600;
    color: #FFFFFF;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

td {
    color: #F2F2F7;
    font-weight: 500;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 按钮样式 */
/* 现代化按钮 */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #007AFF;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-modern.primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-modern.primary:hover {
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 14px;
    margin-right: 10px;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

/* 客户端ID列表样式 */
.client-ids {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-ids li {
    margin-bottom: 5px;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .current-page {
    margin: 0 20px;
    color: #666;
}

/* 用户信息样式 */
.user-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.user-info h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.user-info p {
    margin-bottom: 10px;
    color: #666;
}


/* Apple风格导航栏 */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: #1d1d1f;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 1001;
}

.brand-icon {
    color: #007AFF;
}

/* 汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #1d1d1f;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    transition: all 0.3s ease;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 英雄区域 */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}



.hero-content {
    flex: 1;
    padding: 0 60px;
    z-index: 2;
    position: relative;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-title {
    margin: 0 0 20px 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1d1d1f;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.hero-greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 8px;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #86868b;
    margin-bottom: 40px;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    gap: 40px;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-stat {
    text-align: center;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translate3d(0, -2px, 0);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 400;
}

.hero-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.hero-graphic {
    filter: drop-shadow(0 10px 30px rgba(0, 122, 255, 0.3));
    opacity: 0.8;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.main-header h1 {
    font-size: 24px;
    color: #333;
}

.main-nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Apple风格下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.nav-dropdown-toggle:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
    border-radius: 0;
    margin-left: 0;
    font-weight: normal;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 122, 255, 0.1);
    text-decoration: none;
}

.nav-dropdown-menu a.danger {
    color: #ff3b30;
}

/* Apple风格功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #5856D6, #AF52DE);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-description {
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 功能卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card.primary-card {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
}

.feature-card.primary-card .card-header h3,
.feature-card.primary-card .card-content,
.feature-card.primary-card .card-icon {
    color: white;
}

.feature-card.wide-card {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .feature-card.wide-card {
        grid-column: span 1;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.card-icon {
    color: #007AFF;
    flex-shrink: 0;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.3;
}

.card-content {
    flex: 1;
    color: #1d1d1f;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.big-number {
    font-size: 3rem;
    font-weight: 700;
    color: inherit;
    margin-bottom: 8px;
    line-height: 1;
}

.card-description {
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.feature-card.primary-card .card-description {
    color: rgba(255, 255, 255, 0.8);
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 400;
}

.info-value {
    font-weight: 500;
    color: #1d1d1f;
}



/* VIP状态样式 */
.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1d1d1f;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: vip-glow 2s ease-in-out infinite alternate;
}

.admin-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.normal-badge {
    background: linear-gradient(135deg, #86868b, #a1a1a6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@keyframes vip-glow {
    from {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    to {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

.vip-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-expire {
    color: #1d1d1f;
    font-weight: 600;
}

.vip-days-left {
    color: #86868b;
    font-weight: 400;
    font-size: 0.75rem;
    margin-left: 8px;
}

.donation-info {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1));
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.donation-amount {
    color: #1d1d1f;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-action {
    margin-top: 24px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.small-card {
    flex: 1 1 240px;
    min-width: 240px;
    max-width: 320px;
}

.large-card {
    flex: 2 1 600px;
    min-width: 300px;
    max-width: 100%;
}

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

.dashboard-stat {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    word-break: break-all;
    line-height: 1.2;
    /* CSS3硬件加速优化 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.dashboard-stat.counting {
    color: #007bff;
}

.info-list p {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.ranking-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    font-size: 14px;
    color: #6c757d;
}

.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.feedback-list {
    max-height: 400px;
    overflow-y: auto;
}

.feedback-form .form-group {
    margin-bottom: 15px;
}

.feedback-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.feedback-form input[type="text"],
.feedback-form textarea {
    width: 79%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.feedback-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.feedback-form button:hover {
    background-color: #0056b3;
}

.feedback-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-status {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.status-open {
    background-color: #ffc107;
    color: #212529;
}

.status-closed {
    background-color: #28a745;
    color: white;
}

.admin-reply {
    margin-top: 8px;
    padding: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.main-nav a {
    margin-left: 20px;
    color: #3498db;
    text-decoration: none;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    align-items: start;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.dashboard-stat {
    font-size: 48px;
    color: #3498db;
    margin: 20px 0;
    text-align: center;
}

.info-list p {
    margin-bottom: 10px;
    color: #666;
}

.info-list strong {
    color: #2c3e50;
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    color: #666;
    margin: 50px 0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .main-header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .main-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav a {
        margin-left: 0;
        padding: 10px 15px;
        background-color: #f8f9fa;
        border-radius: 5px;
        border: 1px solid #dee2e6;
        display: block;
        text-align: center;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        margin-left: 0;
        width: 100%;
        text-align: center;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        display: block;
        box-sizing: border-box;
    }
    
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        background: transparent;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu a {
        background-color: #e9ecef;
        margin-bottom: 5px;
        border: 1px solid #ced4da;
    }
    
    .dashboard-row {
        flex-direction: column;
    }
    
    .small-card,
    .large-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .auth-container {
        max-width: 90%;
        margin: 30px auto;
        padding: 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="number"] {
        font-size: 14px;
    }
    
    .form-group button {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 5px;
    }
    
    .main-header {
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .main-header h1 {
        font-size: 18px;
    }
    
    .main-nav {
        gap: 8px;
    }
    
    .main-nav a {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .nav-dropdown-toggle {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .nav-dropdown-menu a {
        padding: 10px;
        font-size: 14px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card h2 {
        font-size: 18px;
    }
    
    .dashboard-stat {
        font-size: 28px;
    }
    
    .auth-container {
        max-width: 95%;
        margin: 20px auto;
        padding: 10px;
    }
    
    .auth-container h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* 客户端排行榜样式 */
.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 8px;
}

.ranking-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ranking-item.current-user {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.ranking-item.current-user:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 50px;
}

.rank-badge i {
    font-size: 20px;
    margin-bottom: 4px;
}

.rank-number {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.ranking-item.rank-1 .rank-number {
    color: #ffd700;
    font-size: 20px;
}

.ranking-item.rank-2 .rank-number {
    color: #c0c0c0;
    font-size: 19px;
}

.ranking-item.rank-3 .rank-number {
    color: #cd7f32;
    font-size: 18px;
}

.client-info {
    flex: 1;
    margin-right: 15px;
}

.client-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-name i {
    color: #6c757d;
    font-size: 14px;
}

.current-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 2px;
}

.request-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.request-count {
    font-weight: bold;
    color: #3498db;
    font-size: 16px;
    line-height: 1;
}

.request-label {
    color: #6c757d;
    font-size: 11px;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 留言列表样式 */
.feedback-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.feedback-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #dee2e6;
}

.feedback-item .title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.feedback-item .content {
    color: #666;
    margin-bottom: 10px;
}

.feedback-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.feedback-item .status {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.feedback-item .status.pending {
    background-color: #fff0c2;
    color: #856404;
}

.feedback-item .status.approved {
    background-color: #d4edda;
    color: #155724;
}

.feedback-item .status.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.ranking-item.rank-1 {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ranking-item.rank-1 .rank-badge i {
    color: #ffd700;
}

.ranking-item.rank-2 {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.ranking-item.rank-2 .rank-badge i {
    color: #c0c0c0;
}

.ranking-item.rank-3 {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #ffeaa7 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.ranking-item.rank-3 .rank-badge i {
    color: #cd7f32;
}

.ranking-item.rank-other .rank-badge i {
    color: #6c757d;
}

/* 响应式设计 - 排行榜 */
@media (max-width: 768px) {
    .ranking-item {
        padding: 12px;
    }
    
    .rank-badge {
        min-width: 40px;
        margin-right: 10px;
    }
    
    .rank-badge i {
        font-size: 16px;
    }
    
    .rank-number {
        font-size: 12px;
    }
    
    .client-name {
        font-size: 13px;
    }
    
    .client-name i {
        font-size: 12px;
    }
    
    .current-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .user-name {
        font-size: 11px;
    }
    
    .request-stats {
        min-width: 60px;
    }
    
    .request-count {
        font-size: 14px;
    }
    
    .request-label {
        font-size: 10px;
        min-width: 60px;
    }
}

/* 留言表单样式 */
.feedback-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.feedback-form .form-group {
    margin-bottom: 15px;
}

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

.feedback-form input[type="text"],
.feedback-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.feedback-form input[type="text"]:focus,
.feedback-form textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-form .btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.feedback-form .btn:hover {
    background-color: #0056b3;
}

/* 留言列表样式 */
.feedback-list {
    margin-top: 20px;
}

.feedback-list h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.feedback-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
}

.feedback-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-item.status-open {
    border-left: 4px solid #28a745;
}

.feedback-item.status-closed {
    border-left: 4px solid #6c757d;
    background-color: #f8f9fa;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 16px;
}

.feedback-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open .feedback-status {
    background-color: #d4edda;
    color: #155724;
}

.status-closed .feedback-status {
    background-color: #d1ecf1;
    color: #0c5460;
}

.feedback-content {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.feedback-meta {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.admin-reply {
    margin-top: 10px;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 4px;
    border-left: 3px solid #2196f3;
}

.admin-reply strong {
    color: #1976d2;
}

/* 响应式设计 - 留言 */
@media (max-width: 768px) {
    .feedback-form {
        padding: 15px;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .feedback-header h4 {
        font-size: 14px;
    }
    
    .feedback-content {
        font-size: 14px;
    }
    
    .feedback-meta {
        font-size: 11px;
    }
}

/* DNS配置板块样式 */
.dns-config-content {
    padding: 0;
}

.dns-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dns-config-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
}

.dns-config-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dns-config-item:last-child {
    margin-bottom: 0;
}

.dns-config-item h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-config-item h4 i {
    font-size: 18px;
}

.dns-server-info {
    margin-left: 26px;
}

.dns-server-info p {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 14px;
}

.dns-server-info p:last-child {
    margin-bottom: 0;
}

.dns-server-info code {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 13px;
    font-weight: 600;
}

.dns-desc {
    color: #6c757d !important;
    font-size: 13px !important;
    font-style: italic;
}

.no-config {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    margin: 0;
    font-style: italic;
}

/* 响应式设计 - DNS配置 */
@media (max-width: 768px) {
    .dns-config-item {
        padding: 12px;
    }
    
    .dns-config-item h4 {
        font-size: 15px;
    }
    
    .dns-server-info {
        margin-left: 20px;
    }
    
    .dns-server-info p {
        font-size: 13px;
    }
    
    .dns-server-info code {
        font-size: 12px;
        word-break: break-all;
    }
    
    .dns-desc {
        font-size: 12px !important;
    }
    
    /* 管理员后台移动端优化 */
    .admin-container {
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-nav {
        width: 100%;
    }
    
    .admin-nav a {
        display: block;
        margin: 5px 0;
        padding: 10px;
        background-color: #f8f9fa;
        border-radius: 5px;
        border: 1px solid #dee2e6;
        text-align: center;
    }
    
    /* Bootstrap导航栏移动端优化 */
    .navbar-nav .nav-link {
        padding: 10px 15px;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
    }
    
    .dropdown-item {
         padding: 8px 15px;
         text-align: center;
     }
     
     /* 移动端触摸优化 */
     .main-nav a,
     .nav-dropdown-toggle,
     .nav-dropdown-menu a {
         min-height: 44px;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     /* 表格移动端优化 */
     table {
         font-size: 14px;
     }
     
     th, td {
         padding: 8px 4px;
         word-break: break-word;
     }
     
     /* 按钮移动端优化 */
     .btn {
         min-height: 44px;
         padding: 12px 16px;
     }
 }
 
 /* 现代化公告横幅 */
.announcement-banner {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.95), rgba(108, 117, 125, 0.9));
    backdrop-filter: saturate(180%) blur(20px);
    color: white;
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.announcement-icon {
    color: white;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.announcement-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* HTML内容样式支持 */
.announcement-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.announcement-text a:hover {
    color: #e3f2fd;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.announcement-text strong {
    font-weight: 700;
    color: #ffffff;
}

.announcement-text em {
    font-style: italic;
    color: #e3f2fd;
}

.announcement-text code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-close:active {
    transform: scale(0.95);
}


@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 现代化表单 */
.modern-form {
    margin-bottom: 32px;
}

.form-row {
    margin-bottom: 16px;
}

.form-group {
    position: relative;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modern-form input::placeholder,
.modern-form textarea::placeholder {
    color: #86868b;
}

/* 排行榜样式 */
.ranking-list {
    max-height: 300px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-position {
    font-weight: 700;
    color: #007AFF;
    min-width: 30px;
    font-size: 14px;
}

.ranking-name {
    flex: 1;
    margin-left: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

.ranking-count {
    font-weight: 600;
    color: #86868b;
    font-size: 14px;
}

/* 留言列表 */
.feedback-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 32px 0 16px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.feedback-item {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feedback-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 122, 255, 0.2);
}

.feedback-title {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    font-size: 14px;
}

.feedback-content {
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 13px;
}

.feedback-meta {
    font-size: 0.75rem;
    color: #86868b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-status {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.feedback-status.pending {
    background: #fff3cd;
    color: #856404;
}

.feedback-status.resolved {
    background: #d4edda;
    color: #155724;
}

/* DNS配置内容样式 */
.dns-config-content {
    display: grid;
    gap: 16px;
}

.dns-protocol {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dns-protocol h4 {
    margin: 0 0 12px 0;
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 600;
}

.dns-protocol p {
    margin: 0;
    color: #86868b;
    font-size: 14px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    word-break: break-all;
}

/* 苹果配置内容样式 */
.apple-config-content {
    display: grid;
    gap: 12px;
}

.config-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.config-download:hover {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
}

.config-info {
    flex: 1;
}

.config-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-size: 14px;
}

.config-desc {
    color: #86868b;
    font-size: 12px;
}

.config-download-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-download-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
    }
    
    .hero-section::before {
        background-size: contain;
        opacity: 0.6;
    }
    
    .hero-content {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        flex: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .feature-card.wide-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown {
        width: 100%;
        margin: 0;
    }
    
    .nav-link,
    .nav-dropdown-toggle {
        font-size: 16px;
        padding: 16px 20px;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: none;
        border: none;
        color: #1d1d1f;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0;
        display: block;
        box-sizing: border-box;
    }
    
    .nav-link:last-child,
    .nav-dropdown:last-child .nav-dropdown-toggle {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-dropdown-toggle:hover {
        background: rgba(0, 122, 255, 0.1);
        transform: none;
    }
    
    .main-container {
        padding: 80px 16px 40px;
    }
    
    .hero-section {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .hero-section::before {
        background-size: contain;
        opacity: 0.6;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-visual {
        padding: 20px;
    }
    
    .hero-graphic {
        width: 300px;
        height: 225px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .card-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .big-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        padding: 16px 0;
    }
    
    .nav-dropdown {
        width: 100%;
        margin: 0;
    }
    
    .nav-link,
    .nav-dropdown-toggle {
        font-size: 15px;
        padding: 14px 16px;
        display: block;
        box-sizing: border-box;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    .brand-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-toggle span {
        width: 20px;
    }
    
    .hero-section {
        padding: 30px 16px;
        margin-bottom: 30px;
    }
    
    .hero-section::before {
        background-size: contain;
        opacity: 0.6;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-greeting {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-graphic {
        width: 250px;
        height: 187px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 1.125rem;
    }
    
    .big-number {
        font-size: 2rem;
    }
    
    .announcement-banner {
        margin: 16px 0;
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .announcement-banner-content {
        gap: 16px;
    }
    
    .announcement-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .announcement-close {
        padding: 8px;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .nav-container {
        height: 56px;
    }
    
    .main-container {
        padding: 76px 12px 40px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-greeting {
        font-size: 1.125rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 150px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .card-header {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .card-icon {
        width: 24px;
        height: 24px;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .big-number {
        font-size: 1.75rem;
    }
    
    .modern-form input,
    .modern-form textarea {
        padding: 12px;
        font-size: 13px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .main-header h1 {
        font-size: 16px;
    }
     
    .main-nav a,
    .nav-dropdown-toggle {
        font-size: 13px;
        padding: 10px 8px;
    }
     
    .dashboard-stat {
        font-size: 24px;
    }
     
    .dashboard-card h2 {
        font-size: 16px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .main-container {
        background-color: #1c1c1e;
    }
    
    .apple-nav {
        background: rgba(28, 28, 30, 0.8);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-brand,
    .nav-link {
        color: #f2f2f7;
    }
    
    .nav-toggle span {
        background: #f2f2f7;
    }
    
    .nav-menu {
        background: rgba(28, 28, 30, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .nav-dropdown-toggle {
        color: #f2f2f7;
    }
    
    .nav-dropdown-menu {
        background: rgba(28, 28, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown-menu a {
        color: #f2f2f7;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #2c2c2e 0%, #3a3a3c 100%);
    }
    
    .hero-title,
    .stat-number {
        color: #f2f2f7;
    }
    
    .feature-card {
        background: rgba(44, 44, 46, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .card-header h3,
    .card-content,
    .info-value {
        color: #f2f2f7;
    }
    
    .modern-form input,
    .modern-form textarea {
        background: rgba(44, 44, 46, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #f2f2f7;
    }
    
    .modern-form input::placeholder,
    .modern-form textarea::placeholder {
        color: #8e8e93;
    }
}

/* 多客户端DNS配置样式 */
.client-section {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.client-title {
    color: #5a5c69;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-title i {
    color: #858796;
    font-size: 14px;
}

.client-separator {
    border: none;
    border-top: 2px solid #e3e6f0;
    margin: 25px 0;
    opacity: 0.6;
}

/* 当只有一个客户端时，保持原有样式 */
.dns-config-content:has(.client-section) .dns-config-item {
    margin-left: 0;
}

/* 响应式设计 - 多客户端 */
@media (max-width: 768px) {
    .client-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .client-title {
        font-size: 14px;
    }
    
    .client-separator {
        margin: 20px 0;
    }
}