/* 页面标题区域 */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://img2.baidu.com/it/u=1166098408,811706935&fm=253&fmt=auto&app=138&f=JPEG?w=760&h=475') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区块通用样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--metal);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 查询区域样式 */
.search-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--fire);
    outline: none;
}

.search-box button {
    background-color: var(--fire);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    font-size: 1.1rem;
}

.search-box button:hover {
    background-color: #e63e00;
}

/* 多人重名选择样式 */
.multiple-results {
    display: none;
    width: 100%;
    /*max-width: 800px;*/
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.multiple-results h4 {
    color: var(--fire);
    margin-bottom: 1rem;
    text-align: center;
}

.results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.result-option {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    min-width: 180px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.result-option:hover {
    border-color: var(--fire);
    transform: translateY(-3px);
}

.result-option.selected {
    border-color: var(--fire);
    background-color: rgba(255, 69, 0, 0.05);
}

.result-option h5 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.result-option p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 结果展示区域 */
.result-section {
    display: none;
    margin-top: 2rem;
}

.result-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.person-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.avatar-container {
    flex: 0 0 200px;
    text-align: center;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--earth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.default-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--earth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.default-avatar i {
    font-size: 4rem;
    color: #aaa;
}

.person-details {
    flex: 1;
    min-width: 300px;
}

.person-details h3 {
    font-size: 2rem;
    color: var(--fire);
    margin-bottom: 0.5rem;
}

.person-details .alias {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.person-details .heritage {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f5f0;
    border-left: 4px solid var(--metal);
    border-radius: 4px;
}

.heritage-span {
    color: #ea560a;
    font-style: italic;
}

.person-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.person-details .detail-item {
    background-color: #f8f5f0;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 4px solid var(--metal);
}

.person-details .detail-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

/* 详细信息区域 */
.detail-content {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f5f0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    border-bottom: 2px solid var(--metal);
    padding-bottom: 0.5rem;
}

.detail-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.media-item {
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-caption {
    padding: 0.8rem;
    background-color: white;
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--metal);
    transform: translateY(-3px);
}

.supplement-btn-large {
    background-color: var(--water);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.supplement-btn-large:hover {
    background-color: #1a7fdd;
    transform: translateY(-2px);
}

/* 验证码模态框样式 */
.modal-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-search h3 {

    margin-bottom: 1.5rem;
    color: var(--dark);
    border-bottom: 2px solid var(--metal);
    padding-bottom: 0.5rem;
}

.modal-search .modal-main {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-search input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.btn-secondary:hover {
    background-color: #bbb;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: var(--fire);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 5px;
    background: linear-gradient(45deg, var(--fire), var(--metal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 1rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
    user-select: none;
}

.refresh-captcha {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--water);
    cursor: pointer;
    transition: var(--transition);
}

.refresh-captcha:hover {
    transform: rotate(90deg);
    color: #1a7fdd;
}

.captcha-input {
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .login-btn {
        margin: 0.5rem auto;
        display: block;
        width: 200px;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .person-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .person-details {
        min-width: 100%;
    }
}