:root {
    --primary: #333;
    --primary-light: #555;
    --secondary: #666;
    --accent: #007bff;
    --accent-hover: #0056b3;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #eee;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: rgba(0, 0, 0, 0.05);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --footer-bg: #333;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

body.theme-blue {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --secondary: #0f3460;
    --accent: #e94560;
    --accent-hover: #c73e54;
    --bg: #ffffff;
    --bg-light: #f0f4f8;
    --border: #dde1e7;
    --text: #1a1a2e;
    --text-light: #666;
    --text-muted: #999;
    --footer-bg: #1a1a2e;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

body.theme-green {
    --primary: #064e3b;
    --primary-light: #047857;
    --secondary: #059669;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg: #ffffff;
    --bg-light: #ecfdf5;
    --border: #a7f3d0;
    --text: #064e3b;
    --text-light: #374151;
    --text-muted: #9ca3af;
    --footer-bg: #064e3b;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

body.theme-purple {
    --primary: #4c1d95;
    --primary-light: #6d28d9;
    --secondary: #7c3aed;
    --accent: #db2777;
    --accent-hover: #be185d;
    --bg: #ffffff;
    --bg-light: #faf5ff;
    --border: #e9d5ff;
    --text: #4c1d95;
    --text-light: #374151;
    --text-muted: #9ca3af;
    --footer-bg: #4c1d95;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

body.theme-orange {
    --primary: #9a3412;
    --primary-light: #c2410c;
    --secondary: #ea580c;
    --accent: #15803d;
    --accent-hover: #166534;
    --bg: #ffffff;
    --bg-light: #fff7ed;
    --border: #fed7aa;
    --text: #9a3412;
    --text-light: #374151;
    --text-muted: #9ca3af;
    --footer-bg: #9a3412;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
}

body.theme-dark {
    --primary: #f1f5f9;
    --primary-light: #cbd5e1;
    --secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #64748b;
    --footer-bg: #020617;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #f1f5f9;
    --shadow: rgba(255, 255, 255, 0.08);
}

body.theme-html5-dopetrope {
    --primary: #ffffff;
    --primary-light: #e0e0e0;
    --secondary: #c0c0c0;
    --accent: #d52349;
    --accent-hover: #b81e3f;
    --bg: #252122;
    --bg-light: #353434;
    --border: #454444;
    --text: #e0e0e0;
    --text-light: #c0c0c0;
    --text-muted: #808080;
    --footer-bg: #252122;
    --footer-text: #c0c0c0;
    --footer-heading: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
}

body.theme-html5-ethereal {
    --primary: #2e2b37;
    --primary-light: #3d3a47;
    --secondary: #726193;
    --accent: #e37b7c;
    --accent-hover: #d46b6c;
    --bg: #e1e6e1;
    --bg-light: #f0f4f0;
    --border: #d0d5d0;
    --text: #2e2b37;
    --text-light: #726193;
    --text-muted: #9fa49f;
    --footer-bg: #2e2b37;
    --footer-text: #ffe4b4;
    --footer-heading: #ffffff;
    --shadow: rgba(46, 43, 55, 0.1);
}

body.theme-html5-editorial {
    --primary: #3d4449;
    --primary-light: #4d5459;
    --secondary: #7f888f;
    --accent: #f56a6a;
    --accent-hover: #e45959;
    --bg: #ffffff;
    --bg-light: #f5f6f7;
    --border: rgba(210, 215, 217, 0.75);
    --text: #3d4449;
    --text-light: #7f888f;
    --text-muted: #9fa3a6;
    --footer-bg: #3d4449;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-heading: #ffffff;
    --shadow: rgba(61, 68, 73, 0.1);
}

body.theme-html5-stellar {
    --primary: #ffffff;
    --primary-light: #f0f0f0;
    --secondary: #e0e0e0;
    --accent: #8cc9f0;
    --accent-hover: #9dd4f5;
    --bg: #935d8c;
    --bg-light: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.25);
    --text: #ffffff;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --footer-bg: #5f4d93;
    --footer-text: rgba(255, 255, 255, 0.85);
    --footer-heading: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
}

body.theme-html5-fractal {
    --primary: #828282;
    --primary-light: #929292;
    --secondary: #999999;
    --accent: #4696e5;
    --accent-hover: #5ca3e8;
    --bg: #ffffff;
    --bg-light: #f7f7f7;
    --border: #e6e6e6;
    --text: #828282;
    --text-light: #999999;
    --text-muted: #b2b2b2;
    --footer-bg: #828282;
    --footer-text: rgba(255, 255, 255, 0.8);
    --footer-heading: #ffffff;
    --shadow: rgba(130, 130, 130, 0.1);
}

.required {
    color: var(--danger);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

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

.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.navbar-menu a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary);
}

.hero {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg);
}

.domain-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    word-break: break-all;
    font-weight: 300;
    letter-spacing: -1px;
}

.price-badge {
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.price-value {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 700;
}

.domain-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-recharge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-recharge:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #b02a37;
}

.features {
    padding: 4rem 0;
    background: var(--bg);
}

.features h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    font-weight: 400;
}

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.related-domains,
.domains-list,
.hot-domains,
.user-domains {
    padding: 4rem 0;
    background: var(--bg-light);
}

.related-domains h2,
.domains-list h2,
.hot-domains h2,
.user-domains h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 400;
}

.result-count {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.no-result {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.more-domains {
    text-align: center;
    margin-top: 1.5rem;
}

.more-domains a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
}

.more-domains a:hover {
    text-decoration: underline;
}

.announcements {
    padding: 4rem 0;
    background: var(--bg);
}

.announcements h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 400;
}

.announcement-list {
    max-width: 600px;
    margin: 0 auto;
}

.announcement-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

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

.announcement-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    min-width: 4rem;
}

.announcement-title {
    font-size: 0.9375rem;
    color: var(--text);
    flex: 1;
}

.announcement-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.announcement-item:hover {
    cursor: pointer;
}

.announcement-item:hover .announcement-arrow {
    color: var(--accent);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.5rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0;
    line-height: 1.8;
    color: var(--text);
}

.announcement-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
}

.announcement-scroll-inner {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.announcement-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.announcement-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.announcement-card .announcement-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.announcement-card .announcement-title {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.filter-bar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: center;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sort-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.category-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--border);
    min-width: 80px;
    text-align: center;
}

.category-tab:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.category-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.sort-tab {
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border);
    min-width: 80px;
    text-align: center;
}

.sort-tab:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.sort-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.domain-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.domain-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.domain-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.domain-price {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.domain-price-large {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.domain-info {
    padding: 3rem 0;
    background: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
}

.domain-hits {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.domain-seller {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-section {
    padding: 2.5rem 0;
    background: var(--bg);
}

.contact-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info,
.contact-form {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8125rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--bg);
    color: var(--text);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer {
    background: var(--footer-bg, var(--primary));
    color: var(--footer-heading, white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: var(--footer-heading, white);
    font-weight: 600;
}

.footer-section p {
    color: var(--footer-text, rgba(255, 255, 255, 0.6));
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--footer-text, rgba(255, 255, 255, 0.6));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--footer-heading, white);
}

.footer-friend-links {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1.5rem;
}

.footer-friend-links h4 {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--footer-heading, white);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.friend-links-container a {
    color: var(--footer-text, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    color: var(--footer-heading, white);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--footer-text, rgba(255, 255, 255, 0.5));
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

.search-section {
    padding: 1.5rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.75rem;
}

.search-form input {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--bg);
    color: var(--text);
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.batch-bar {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.batch-bar label {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.batch-bar input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.domain-detail {
    padding: 4rem 0;
    background: var(--bg-light);
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.price-display {
    text-align: center;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-info,
.detail-description,
.contact-info {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.detail-info h3,
.detail-description h3,
.contact-info h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.info-value {
    font-weight: 600;
    font-size: 0.8125rem;
}

.contact-page {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-page h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.page-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.875rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.map-section {
    margin-bottom: 3rem;
}

.map-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-placeholder {
    background: var(--bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.map-content {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.map-marker {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.auth-container {
    width: 100%;
    max-width: 360px;
}

.auth-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.375rem;
    font-weight: 400;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-sidebar {
    width: 220px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-menu {
    padding: 0 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu .dropdown {
    position: relative;
}

.sidebar-menu .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu .dropdown > a::after {
    content: '▼';
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.sidebar-menu .dropdown:hover > a::after {
    transform: rotate(180deg);
}

.sidebar-menu .dropdown-submenu {
    display: none;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 4px 4px;
    margin-top: 0.125rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu .dropdown:hover .dropdown-submenu,
.sidebar-menu .dropdown.open .dropdown-submenu {
    display: block;
}

.sidebar-menu .dropdown-submenu a {
    padding-left: 2rem;
    font-size: 0.8125rem;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.0625rem;
}

.sidebar-menu .dropdown-submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .dropdown-submenu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    padding: 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.sidebar-footer p {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    color: rgba(255, 255, 255, 0.5);
}

.logout-btn {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.8125rem;
}

.logout-btn:hover {
    text-decoration: underline;
}

.admin-main {
    margin-left: 220px;
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.admin-footer p {
    margin: 0.25rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid var(--border);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    min-width: 140px;
}

.stat-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-value-small {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.charts-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card-small {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex: 1;
    height: 250px;
}

.chart-card-small h3 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.chart-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.chart-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.dashboard-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
}

.section-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table th,
.data-table td {
    padding: 0.625rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

.sort-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 3px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    text-decoration: none;
    vertical-align: middle;
    font-size: 8px;
    line-height: 6px;
}

.sort-icon:hover {
    color: var(--accent);
}

.sort-icon.active {
    color: var(--accent);
}

.sort-icon span {
    display: block;
}

.sort-icon.active span.up {
    display: none;
}

.sort-icon.active span.down {
    display: none;
}

.sort-icon.active.ASC span.up {
    display: block;
    color: var(--accent);
}

.sort-icon.active.ASC span.down {
    display: none;
}

.sort-icon.active.DESC span.down {
    display: block;
    color: var(--accent);
}

.sort-icon.active.DESC span.up {
    display: none;
}

.data-table tr:hover {
    background: var(--bg-light);
}

.filter-bar {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.filter-btn {
    padding: 0.4375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.status-tabs {
    display: flex;
    gap: 0.5rem;
}

.status-tab {
    padding: 0.4375rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.status-tab:hover,
.status-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg);
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-content form {
    padding: 1.25rem;
}

.detail-row {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.settings-form {
    max-width: 500px;
}

.settings-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
}

.settings-section h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .domain-title {
        font-size: 1.75rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 240px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-body {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 1rem;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .sidebar-footer {
        position: static;
        margin-top: 1rem;
        border-top: none;
        padding-top: 0;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }

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

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.4375rem;
    }

    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .domain-card {
        padding: 1rem;
    }

    .domain-name {
        font-size: 1rem;
    }

    .domain-price {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .domain-title {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.75rem;
    }
}

.admin-body .modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    flex-direction: row !important;
}

.admin-body .modal[style*="flex"] {
    display: flex !important;
}

.recharge-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.recharge-section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--primary);
}

.user-balance-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.user-balance-info p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.user-balance-info strong {
    color: var(--accent);
    font-size: 1.125rem;
}

.recharge-page {
    max-width: 800px;
    margin: 0 auto;
}

.user-balance {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.user-balance h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--primary);
}

.balance-info p {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.balance-info strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.recharge-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.recharge-section h2 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--primary);
}

.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-item {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.package-item:hover {
    border-color: var(--accent);
    background: var(--bg-light);
}

.package-item.selected {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.package-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.package-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.package-item .bonus {
    color: var(--success);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.package-item .total {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.custom-recharge {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-recharge h3 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.custom-recharge input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.custom-recharge p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pay-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.pay-section h3 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.pay-methods {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pay-methods label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text);
}

.pay-methods input[type="radio"] {
    margin: 0;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.payment-modal, .payment-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.payment-modal[style*="flex"], .payment-success-modal[style*="flex"] {
    display: flex;
}

.payment-form {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.payment-header {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}

.payment-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.payment-header p {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.payment-body {
    padding: 1.5rem;
}

.amount-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.amount-label {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.amount-hint {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}

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

.info-label {
    color: #999;
}

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

.qrcode-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qrcode-placeholder {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.qrcode-placeholder p {
    margin-bottom: 0.5rem;
    color: #999;
    font-size: 0.875rem;
}

.qrcode-container {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    display: inline-block;
}

.pay-btn-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pay-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.pay-btn:active {
    transform: scale(0.98);
}

.wxpay-btn {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: #fff;
}

.alipay-btn {
    background: linear-gradient(135deg, #1677ff 0%, #0d66e6 100%);
    color: #fff;
}

.pay-btn-icon {
    font-size: 1.25rem;
}

.pay-btn-text {
    font-size: 1rem;
}

.payment-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.close-btn:hover {
    color: #666;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.recharge-center {
    max-width: 700px;
    margin: 0 auto;
}

.user-balance-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.balance-title {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.balance-detail {
    font-size: 0.875rem;
    opacity: 0.85;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--bg);
}

.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.package-card.selected {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.package-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.package-bonus {
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.package-total {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.package-select-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s;
}

.package-card.selected .package-select-btn {
    background: var(--success);
}

.custom-amount-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-amount-section h3 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.custom-amount-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.custom-amount-input .currency {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.custom-amount-input input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.custom-tip {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.payment-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.payment-section h3 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.pay-methods {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9375rem;
    color: var(--text);
}

.pay-method:hover {
    border-color: var(--accent);
}

.pay-method input[type="radio"] {
    display: none;
}

.pay-method input[type="radio"]:checked + .pay-icon + .pay-name {
    color: var(--accent);
}

.pay-method input[type="radio"]:checked + .pay-icon {
    transform: scale(1.1);
}

.pay-method:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.pay-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.pay-name {
    font-weight: 500;
}

.user-center {
    display: flex;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.user-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.user-info {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.user-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--primary);
}

.user-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.user-info .user-balance {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.5rem;
}

.user-menu {
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.user-menu a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    transition: background 0.2s;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background: var(--bg-light);
}

.user-menu a.active {
    background: var(--accent);
    color: white;
}

.user-content {
    flex: 1;
}

.profile-section, .order-section, .history-section {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.profile-section h2, .order-section h2, .history-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.info-item label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.9375rem;
    color: var(--primary);
    margin: 0;
}

.info-item .balance {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.history-item h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.history-item h4 a {
    color: var(--primary);
    text-decoration: none;
}

.history-item h4 a:hover {
    color: var(--accent);
}

.history-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.history-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.vip-upgrade-section {
    padding: 1rem;
}

.vip-upgrade-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.user-current-vip {
    margin-bottom: 1.5rem;
}

.user-current-vip h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.vip-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border);
    text-align: center;
}

.vip-card .vip-level {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.vip-card .vip-expire {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.vip-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vip-package {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vip-package:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.vip-package.selected {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.vip-package-header {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-radius: 8px;
}

.vip-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.svip-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vip-package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.vip-package-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.vip-package-benefits {
    text-align: left;
    margin-bottom: 1.5rem;
}

.vip-package-benefits p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text);
}

.vip-package-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.vip-tips {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.vip-tips p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.status-pending {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.status-active {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.status-inactive {
    color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.logo h1 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo h1 a {
    color: var(--primary);
    text-decoration: none;
}

.logo p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.site-footer p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: transparent;
}

.user-menu a:hover,
.user-menu a.active {
    background: var(--bg-light);
    color: var(--accent);
}

.user-balance-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.user-balance-info p {
    margin: 0.25rem 0;
    font-size: 0.9375rem;
}

.user-balance-info strong {
    color: var(--primary);
}

.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-item {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.package-item:hover {
    border-color: var(--accent);
}

.package-item.selected {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.package-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.package-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.package-item .bonus {
    color: var(--success);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.package-item .total {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.custom-recharge {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.custom-recharge h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.custom-recharge input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.custom-recharge p {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pay-section {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.pay-section h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary);
}

.pay-section .pay-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pay-section .pay-methods label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
}

.pay-section .pay-methods input[type="radio"] {
    margin: 0;
}

.profile-section h2,
.order-section h2,
.history-section h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-item label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.info-item .balance {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.history-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.history-item h4 a {
    color: var(--primary);
    text-decoration: none;
}

.history-item h4 a:hover {
    color: var(--accent);
}

.history-item p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.history-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.vip-upgrade-section {
    padding: 1rem;
}

.vip-upgrade-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.user-current-vip {
    margin-bottom: 1.5rem;
}

.user-current-vip h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.vip-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border);
    text-align: center;
}

.vip-card .vip-level {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.vip-card .vip-expire {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.vip-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vip-package {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vip-package:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.vip-package.selected {
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.05);
}

.vip-package-header {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-radius: 8px;
}

.vip-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.svip-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vip-package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.vip-package-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.vip-package-benefits {
    text-align: left;
    margin-bottom: 1.5rem;
}

.vip-package-benefits p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text);
}

.vip-package-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.vip-tips {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.vip-tips p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
