:root {
    --bg-primary: #050507;
    --bg-card: rgba(20, 20, 24, 0.6);
    --bg-card-hover: rgba(28, 28, 32, 0.8);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    
    --accent-gold: #E5C07B;
    --accent-cyan: #64D2FF;
    
    --border-color: rgba(229, 192, 123, 0.15);
    --border-hover: rgba(229, 192, 123, 0.4);
    --glow-gold: 0 0 25px rgba(229, 192, 123, 0.15);
    --star-color: #fff;
    --star-opacity: 0.6;
    --nav-bg: rgba(10, 10, 12, 0.75);
    --menu-bg: rgba(20, 20, 24, 0.95);
    --video-mask: rgba(0, 0, 0, 0.4);
    --btn-text: #050507;
    --modal-bg: rgba(20, 20, 24, 0.95);
    --modal-border: rgba(229, 192, 123, 0.2);
    --form-input-bg: rgba(30, 30, 34, 0.8);
    
    --whois-key-bg: rgba(229, 192, 123, 0.05);
    --badge-bg: rgba(229, 192, 123, 0.08);
    
    --logo-c1: #E5C07B;
    --logo-c2: #64D2FF;
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    
    --accent-gold: #B8860B;
    --accent-cyan: #007AFF;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(184, 134, 11, 0.3);
    --glow-gold: 0 4px 20px rgba(184, 134, 11, 0.1);
    --star-color: #B8860B;
    --star-opacity: 0.2;
    --nav-bg: rgba(241, 241, 243, 0.85);
    --menu-bg: rgba(241, 241, 243, 0.97);
    
    --video-mask: rgba(255, 255, 255, 0.1);
    
    --btn-text: #fff;
    --modal-bg: rgba(255, 255, 255, 0.98);
    --modal-border: rgba(0, 0, 0, 0.1);
    --form-input-bg: rgba(240, 240, 242, 0.9);
    
    --whois-key-bg: rgba(184, 134, 11, 0.05);
    --badge-bg: rgba(184, 134, 11, 0.15);
}

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

html, body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, color 0.5s ease;
}

.starfield {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-primary); z-index: -1;
    transition: background 0.5s ease; overflow: hidden;
}
[data-theme="light"] .starfield {
    background: 
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.05) 0%, transparent 45%),
        #f5f5f7;
}

.star-layer {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
}
.star-layer-1 { animation: spin 300s linear infinite; }
.star-layer-2 { animation: spin-reverse 450s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

.star {
    position: absolute; background: var(--star-color);
    border-radius: 50%; animation: twinkle 5s infinite;
    opacity: var(--star-opacity); transition: background 0.5s ease;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.6; }
}
.meteor {
    position: absolute; width: 2px; height: 2px;
    background: var(--accent-gold); border-radius: 50%;
    box-shadow: 0 0 8px 1px var(--accent-gold);
    opacity: 0; animation: meteorMove 12s linear infinite;
}
.meteor::before {
    content: ''; position: absolute; top: 1px; left: 2px;
    width: 120px; height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    transform-origin: left center; transform: rotate(-45deg);
}
@keyframes meteorMove {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 0.8; }
    100% { transform: translate(-1000px, 1000px); opacity: 0; }
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glow-gold);
}
.video-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-container::after {
    content: ''; position: absolute; inset: 0;
    background: var(--video-mask); pointer-events: none; 
    transition: background 0.5s ease; border-radius: 20px;
    z-index: 1;
}
.video-container .title {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0 40px 32px 40px;
    margin: 0;
    text-align: left;
    z-index: 2;
}
.video-container .title h1 {
    font-size: clamp(1.4em, 6vw, 2.8em); 
    margin-bottom: 12px; 
    letter-spacing: 2px;
    font-weight: 300;
    white-space: nowrap; 
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 60%, var(--text-primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.video-container .title p {
    font-size: clamp(0.8em, 2.5vw, 1em); 
    color: var(--text-secondary); 
    letter-spacing: 1px; 
    font-weight: 300;
}

[data-theme="light"] .video-container .title h1 {
    background: linear-gradient(135deg, #000000 0%, #B8860B 50%, #000000 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

[data-theme="light"] .video-container .title p {
    color: #000000;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}

.container {
    max-width: 1400px; width: 100%; margin: 0 auto;
    padding: 100px 20px 40px; position: relative; z-index: 1; flex: 1;
}

.toolbar {
    display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px;
}
.search-box-wrapper {
    position: relative; width: 100%; max-width: 500px; margin: 0 auto;
}
.search-box {
    width: 100%; padding: 14px 20px 14px 48px; background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border-color);
    border-radius: 12px; color: var(--text-primary); font-size: 15px;
    outline: none; transition: all 0.3s ease;
}
.search-box:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.2); }
.search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--text-muted); pointer-events: none;
}
.filter-tags { 
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding-bottom: 5px;
}
.filter-tag { 
    padding: 8px 18px; background: transparent; border: 1px solid var(--border-color);
    border-radius: 20px; color: var(--text-secondary); cursor: pointer;
    font-size: 0.85em; transition: all 0.3s ease; user-select: none; flex-shrink: 0;
}
.filter-tag.active, .filter-tag:hover { 
    background: var(--accent-gold); color: var(--btn-text); border-color: var(--accent-gold);
    box-shadow: 0 2px 10px rgba(229, 192, 123, 0.3);
}

.domain-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 10px;
}
@media (max-width: 1200px) { .domain-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .domain-grid { grid-template-columns: 1fr; } }

.domain-card {
    position: relative; background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color); border-radius: 18px;
    padding: 28px 24px; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(20px);
}
.domain-card.visible { animation: cardEnter 0.6s ease-out forwards; }
@keyframes cardEnter {
    to { opacity: 1; transform: translateY(0); }
}

.reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.domain-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5; transition: opacity 0.3s ease;
}
.domain-card:hover {
    transform: translateY(-6px); background: var(--bg-card-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); border-color: var(--border-hover);
}
.domain-card:hover::before { opacity: 1; }

.card-whois-icon {
    position: absolute; top: 24px; right: 24px;
    color: var(--text-muted); cursor: pointer;
    transition: all 0.3s ease; z-index: 2; width: 20px; height: 20px;
}
.card-whois-icon:hover { color: var(--accent-gold); transform: scale(1.1); }

.domain-name {
    font-size: 1.35em; 
    color: var(--text-primary); 
    margin-bottom: 10px;
    font-weight: 500; 
    position: relative; 
    z-index: 1;
    word-break: break-all; 
    letter-spacing: 0.5px; 
    padding-right: 30px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.domain-name:hover {
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(229, 192, 123, 0.4);
}
.domain-name .first-letter {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.15em;
    margin-right: 1px;
    text-shadow: 0 0 5px rgba(229, 192, 123, 0.2);
}

.domain-meaning {
    color: var(--text-secondary); font-size: 0.85em; margin-bottom: 24px;
    line-height: 1.6; position: relative; z-index: 1; flex-grow: 1; font-weight: 400;
}
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border-color);
    position: relative; z-index: 1;
}
.registrar-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--badge-bg); color: var(--accent-gold);
    padding: 6px 12px; border-radius: 8px; font-size: 0.75em;
    font-weight: 500; text-decoration: none; transition: all 0.3s ease;
    border: 1px solid transparent;
}
.registrar-badge:hover {
    background: rgba(229, 192, 123, 0.2); border-color: var(--border-hover);
}
.inquiry-button {
    background: var(--accent-gold); color: var(--btn-text); border: none;
    padding: 8px 18px; border-radius: 8px; cursor: pointer;
    font-weight: 600; transition: all 0.3s ease; z-index: 1; font-size: 0.8em;
    letter-spacing: 1px;
}
.inquiry-button:hover {
    opacity: 0.85; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 192, 123, 0.3);
}
.inquiry-button.inquired {
    background: var(--bg-card); color: var(--text-muted);
    border: 1px solid var(--border-color); cursor: default;
}
.inquiry-button.inquired:hover {
    opacity: 1; transform: none; box-shadow: none;
}

.nav {
    position: fixed; top: 0; left: 0; width: 100%; background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 0; z-index: 100; border-bottom: 1px solid var(--border-color);
    transition: background 0.5s ease;
}
.nav-content {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; position: relative;
}
.nav-logo {
    font-size: 1.2rem; color: var(--text-primary); font-weight: 500;
    letter-spacing: 2px; white-space: nowrap; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
}
.logo-icon { width: 28px; height: 28px; }

.logo-orbit {
    transform-origin: 16px 16px;
    animation: logo-spin 20s linear infinite;
}
@keyframes logo-spin {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(330deg); }
}

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    transition: color 0.3s ease; position: relative;
    padding: 4px 0; font-size: 0.95em; font-weight: 400;
}
.nav-links a:hover { color: var(--accent-gold); }

.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-color); background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.theme-toggle:hover {
    background: var(--bg-card-hover); transform: rotate(20deg); border-color: var(--border-hover);
}
.theme-toggle svg {
    width: 18px; height: 18px; stroke: var(--text-secondary);
    fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 24px; height: 16px; cursor: pointer; z-index: 101;
}
.hamburger span {
    display: block; height: 1.5px; width: 100%; background: var(--text-primary);
    border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed; top: 0; bottom: 0; right: -100%;
    width: 75%; max-width: 320px; background: var(--menu-bg); 
    backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid var(--border-color); padding: 90px 20px 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99; display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
    color: var(--text-primary); text-decoration: none; font-size: 1.05em; 
    padding: 12px 18px; border-radius: 10px; transition: all 0.3s ease; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a::after {
    content: '›'; font-size: 1.6em; color: var(--text-muted);
    opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; line-height: 0;
}
.mobile-menu a:hover { background: rgba(229, 192, 123, 0.08); color: var(--accent-gold); }
.mobile-menu a:hover::after { opacity: 1; transform: translateX(0); color: var(--accent-gold); }

.menu-divider { height: 1px; background-color: var(--border-color); margin: 6px 18px; opacity: 0.6; }

.mobile-menu .menu-footer {
    margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color);
    font-size: 0.75em; color: var(--text-muted); text-align: center; line-height: 1.6;
}

.overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    z-index: 98; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px);
}
.overlay.active { display: block; opacity: 1; }

.contact-info-text {
    color: var(--text-secondary); font-size: 1em; font-weight: 400;
    margin: 12px 0; line-height: 1.8;
}

.copy-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    background: var(--accent-gold); color: var(--btn-text);
    padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
    z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.copy-toast.show {
    opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1);
}

.about-section {
    grid-column: 1 / -1; background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color); border-radius: 20px;
    padding: 48px; position: relative; overflow: hidden;
}
.about-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent); opacity: 0.5;
}
.about-section h2 { color: var(--text-primary); margin-bottom: 24px; font-size: 1.8em; font-weight: 500; }
.about-section h3 { color: var(--accent-gold); margin: 32px 0 16px; font-size: 1.2em; font-weight: 500; }
.about-section p { margin-bottom: 16px; line-height: 1.8; color: var(--text-secondary); font-size: 1em; }
.about-section ul { margin-left: 20px; margin-bottom: 20px; line-height: 1.8; }
.about-section li { margin-bottom: 8px; color: var(--text-secondary); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
.contact-left-info { padding-right: 20px; }
.contact-left-info h2 { font-size: 2em; margin-bottom: 20px; }
.contact-left-info p { margin-bottom: 24px; }
.contact-info-list { margin-top: 40px; }
.contact-info-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95em;
}
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-form-card h3 { margin-bottom: 24px; font-size: 1.2em; color: var(--accent-gold); }

.whois-search-box { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.whois-search-box input {
    flex: 1; min-width: 200px; padding: 14px 18px; background: var(--form-input-bg);
    border: 1px solid var(--border-color); border-radius: 12px;
    color: var(--text-primary); font-family: inherit; outline: none;
    font-size: 16px; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.whois-search-box input::placeholder { color: var(--text-muted); opacity: 0.6; }
.whois-search-box input:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.2); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--form-input-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.whois-search-box button {
    padding: 14px 28px; background: var(--accent-gold); color: var(--btn-text);
    border: none; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 16px; transition: all 0.3s;
}
.whois-search-box button:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(229, 192, 123, 0.3); }

.whois-info-table { margin-top: 20px; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.whois-row { display: flex; border-bottom: 1px solid var(--border-color); }
.whois-row:last-child { border-bottom: none; }
.whois-key {
    width: 35%; padding: 18px 20px; background: var(--whois-key-bg); color: var(--accent-gold); 
    font-weight: 500; font-size: 0.9em; border-right: 1px solid var(--border-color); display: flex; align-items: center;
}
.whois-val {
    width: 65%; padding: 18px 20px; color: var(--text-primary); word-break: break-all; 
    font-size: 0.9em; display: flex; align-items: center;
}
/* 【新增】WHOIS 数据来源链接颜色：与同框数据一致（跟随主题白色/黑色） */
.whois-val a {
    color: var(--text-primary);
    text-decoration: none;
}
.whois-val a:hover {
    text-decoration: underline;
}

.whois-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--accent-gold); font-size: 0.95em; }
.whois-spinner {
    width: 20px; height: 20px; border: 2px solid rgba(229, 192, 123, 0.2);
    border-top-color: var(--accent-gold); border-radius: 50%; animation: spin 1s linear infinite;
}

.whois-error { padding: 30px; text-align: center; color: var(--text-muted); font-size: 0.9em; line-height: 1.6; }
.whois-error-icon { font-size: 2em; margin-bottom: 12px; opacity: 0.6; }

.tool-section-title {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-gold);
}
.tools-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 768px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; text-decoration: none; transition: all 0.3s ease;
}
.tool-card:hover {
    border-color: var(--border-hover); background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.tool-card-title {
    font-size: 1em; color: var(--accent-gold); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.tool-card-desc {
    font-size: 0.8em; color: var(--text-secondary); line-height: 1.5;
}

.footer {
    text-align: center; padding: 50px 20px; border-top: 1px solid var(--border-color);
    margin-top: 60px; color: var(--text-muted); font-size: 0.85em; position: relative; z-index: 1;
}
.footer-content p { margin: 0; padding: 2px 0; letter-spacing: 1px; word-break: break-word; line-height: 1.6; }

.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px); z-index: 200; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease; padding: 20px;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--modal-bg); backdrop-filter: blur(30px);
    border: 1px solid var(--modal-border); border-radius: 20px;
    padding: 36px; width: 100%; max-width: 450px; position: relative;
    transform: scale(0.95); transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); max-height: 85vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 20px; font-size: 28px; color: var(--text-muted); 
    cursor: pointer; transition: color 0.3s ease; user-select: none; line-height: 1;
}
.modal-close:hover { color: var(--accent-gold); }
.modal-content h2 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.4em; font-weight: 500; }
.modal-tip {
    font-size: 0.8em; color: var(--text-muted); margin-bottom: 20px;
    padding: 8px 12px; background: var(--whois-key-bg); border-radius: 8px;
}
.modal-domain { color: var(--accent-gold); font-weight: 500; word-break: break-all; }
.inquiry-form { margin-top: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.9em; font-weight: 400; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; background: var(--form-input-bg);
    border: 1px solid var(--border-color); border-radius: 10px;
    color: var(--text-primary); font-family: inherit; outline: none;
    font-size: 15px; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(229, 192, 123, 0.2);
}
.submit-btn {
    width: 100%; background: var(--accent-gold); color: var(--btn-text); border: none;
    padding: 14px; border-radius: 12px; cursor: pointer; font-weight: 600;
    font-size: 1em; transition: all 0.3s ease; letter-spacing: 1px;
}
.submit-btn:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(229, 192, 123, 0.3); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.custom-alert-content { text-align: center; }
.custom-alert-icon {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; 
    background: rgba(229, 192, 123, 0.1); display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--accent-gold);
}
.custom-alert-icon svg { width: 32px; height: 32px; stroke: var(--accent-gold); fill: none; stroke-width: 2; }
.custom-alert-text { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95em; line-height: 1.6; }
.custom-alert-btn {
    width: 100%; background: var(--accent-gold); color: var(--btn-text); border: none;
    padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 1em;
    transition: opacity 0.3s ease;
}
.custom-alert-btn:hover { opacity: 0.85; }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
    background: var(--bg-card); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    background: var(--accent-gold); border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(229, 192, 123, 0.4);
}
.back-to-top svg {
    width: 20px; height: 20px; stroke: var(--text-primary); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease;
}
.back-to-top:hover svg { stroke: var(--btn-text); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-content { padding: 0 16px; }
    .video-container { height: 220px; }
    .video-container .title { padding: 0 16px 20px 16px; }
    .video-container .title h1 { letter-spacing: 1px; }
    .video-container .title p { letter-spacing: 0.5px; }
    .about-section { padding: 32px 24px; }
    .about-section h2 { font-size: 1.5em; }
    .container { padding: 80px 16px 30px; }
    .whois-row { flex-direction: column; padding: 12px 18px; }
    .whois-key { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 0 0 8px 0; margin-bottom: 8px; font-size: 0.85em; }
    .whois-val { width: 100%; padding: 0; font-size: 0.95em; font-weight: 500; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

    .filter-tags {
        justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; padding: 0 16px 10px 16px;
        scrollbar-width: none; margin: 0 -16px;
    }
    .contact-right-form { margin-top: 24px; }
    .filter-tags::-webkit-scrollbar { display: none; }

    /* 【新增】移动端：表单被 JS 移到 about-section 外面后，给它一个上间距，独立成卡 */
    .contact-right-form { margin-top: 24px; }
}

/* ===== 以下为后台管理功能追加样式（不修改上方任何原有样式） ===== */

.add-btn {
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    background: transparent;
    cursor: pointer;
}
.add-btn:hover {
    background: var(--accent-cyan) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 2px 10px rgba(100, 210, 255, 0.3);
}

.card-admin-icons {
    position: absolute;
    top: 24px;
    right: 50px;
    display: none;
    gap: 10px;
    z-index: 3;
}
body.admin-mode .card-admin-icons { display: flex; }
body.admin-mode .card-whois-icon { right: 24px; }

.card-admin-icons .admin-icon {
    width: 20px; height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; padding: 0;
}
.card-admin-icons .admin-icon:hover {
    color: var(--accent-gold);
    transform: scale(1.15);
}
.card-admin-icons .admin-icon.delete-icon:hover {
    color: #ff4d4f;
}

#logoutLink {
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 4px 14px !important;
    font-size: 0.85em;
}


/* ===== 移动端菜单顶部功能区（配色修正版） ===== */
.mobile-menu-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 12px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 移动端退出按钮样式 - 改为金色风格 */
.logout-mobile {
    display: flex; align-items: center; gap: 8px;
    /* 文字颜色改为金色 */
    color: var(--accent-gold); 
    text-decoration: none;
    font-size: 0.95em; font-weight: 500;
    padding: 6px 12px; 
    border-radius: 8px;
    transition: all 0.3s ease;
}
.logout-mobile:hover {
    /* 悬停背景改为金色（很淡的） */
    background: rgba(229, 192, 123, 0.1); 
}
.logout-mobile svg {
    width: 20px; height: 20px;
}


