/* 基础样式 */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #95a5a6;
    --light-gray: #f5f7fa;
    --border: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    text-decoration: underline;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

header h1 {
    font-size: 24px;
    color: var(--dark);
}

header h1 span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--dark);
    font-weight: 500;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.lang-switch a.active {
    font-weight: bold;
    color: var(--primary);
}

/* 主要内容区 */
main {
    padding: 40px 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark);
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 域名输入表单 */
.domain-input {
    display: flex;
    max-width: 700px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.domain-input input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.domain-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.domain-input button:hover {
    background: var(--primary-dark);
}

.query-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.query-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* 特性卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* 结果页面 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-header h2 {
    font-size: 28px;
}

.result-header .domain a {
    color: var(--primary);
    text-decoration: none;
}

.result-header .domain a:hover {
    text-decoration: underline;
}

.view-switch {
    display: flex;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.view-switch a {
    padding: 8px 20px;
    font-weight: 500;
}

.view-switch a.active {
    background: var(--primary);
    color: white;
}

.error-message {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.error-message i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 20px;
}

.error-message p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--danger);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.result-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.parsed-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.result-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
}

.result-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.result-card ul {
    list-style: none;
}

.result-card li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
}

.result-card li:last-child {
    border-bottom: none;
}

.result-card li strong {
    min-width: 120px;
    display: inline-block;
    color: var(--dark);
}

.status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.status.inactive {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.raw-results {
    padding: 30px;
    background: #2c3e50;
    color: #ecf0f1;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

.new-search {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.new-search h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* 页脚样式 */
footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    .domain-input {
        flex-direction: column;
    }
    
    .domain-input button {
        padding: 15px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-switch {
        width: 100%;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .query-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}