/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
}

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

/* 标题样式 */
h1 {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* 登录、注册和激活页面通用样式 */
.auth-container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 360px;
    margin: 20px auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.auth-form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.auth-form button {
    width: 100%;
    height: 36px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.auth-form button:hover {
    background-color: #2980b9;
}

.auth-links {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
}

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

/* 输入框基础样式 */
.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-wrapper:last-child {
    margin-bottom: 0;
}

.input-wrapper input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* 输入框焦点状态 */
.input-wrapper input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 验证提示基础样式 */
.validation-tip {
    display: none;
    position: static;
    font-size: 12px;
    color: #ff4d4f;
    line-height: 1.4;
    margin-top: 4px;
    min-height: 17px;
}

/* 提示消息样式优化 */
.alert {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.alert-success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2352c41a'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1.177-7.86l-2.765-2.767L7 12.431l3.119 3.121a1 1 0 001.414 0l5.952-5.95-1.062-1.062-5.6 5.6z'/%3E%3C/svg%3E");
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group .btn {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button-group .btn-primary {
    background: #3498db;
    color: white;
}

.button-group .btn-primary:hover {
    background: #2980b9;
}

.button-group .btn-secondary {
    background: #edf2f7;
    color: #666;
}

.button-group .btn-secondary:hover {
    background: #e2e8f0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .auth-container {
        margin: 10px;
        padding: 20px;
        border-radius: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}

/* 搜索和结果展示相关样式保持不变 */
/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1, .page-title {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle, .page-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* 用户信息样式 */
.user-info {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    line-height: 1.5;
    color: #666;
}

.user-info .welcome {
    margin-bottom: 8px;
    font-size: 15px;
}

.user-info .user-meta {
    font-size: 14px;
}

.user-info a {
    color: #3498db;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

/* 搜索容器样式 */
.search-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.input-group input[type="text"] {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: 56px;
}

.input-group input[type="text"]::placeholder {
    color: #a0aec0;
}

.input-group input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group button {
    height: 56px;
    padding: 0 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.input-group button:hover {
    background: #2980b9;
}

.input-group button span {
    display: inline-block;
    transition: all 0.3s ease;
}

.input-group button.loading span {
    opacity: 0;
}

.loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

.input-group button.loading .loader {
    display: block;
}

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

/* 移动端样式 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0;
    }

    .search-container {
        background: none;
        box-shadow: none;
        padding: 20px;
        margin-bottom: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-group input[type="text"] {
        width: 100%;
        height: 50px !important;
        line-height: 50px !important;
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        padding: 0 15px;
        font-size: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .input-group button {
        width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        border-radius: 8px;
        background: #3498db;
        padding: 0;
        margin-top: 5px;
    }

    /* 用户信息样式 */
    .user-info {
        padding: 10px 15px;
    }
    
    .user-info .welcome,
    .user-info .user-meta {
        word-break: break-all;
    }

    /* 标题样式 */
    h1 {
        font-size: 20px;
        margin-bottom: 5px;
        text-align: center;
    }

    .subtitle {
        font-size: 14px;
        color: #666;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* iOS 设备特定样式 */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 480px) {
        .input-group input[type="text"],
        .input-group button {
            -webkit-appearance: none;
            appearance: none;
        }
    }
}

/* 结果容器样式 */
.result-container {
    display: none;
    margin-bottom: 30px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

td {
    color: #2d3748;
    font-size: 14px;
}

tr:hover {
    background-color: #f8fafc;
}

/*td[data-label="序号"],*/
/*td[data-label="荣誉等级"],*/
/*td[data-label="灯牌等级"] {*/
/*    text-align: center;*/
/*}*/

/* 查询结果容器样式优化 */
.result-container {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 表格样式优化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

td {
    background: #fff;
    font-weight: bold;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .result-container {
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    table {
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
        width: 100%;
    }

    tr {
        display: block;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 15px;
        background: #fff;
        border: none;
        font-size: 14px;
    }

    td[data-label="序号"] {
        background: #EDF2F7;
    }

    td:before {
        content: attr(data-label);
        min-width: 80px;
        font-weight: 600;
        color: #333;
        margin-right: 15px;
    }

    td > span {
        flex: 1;
        text-align: left;
    }

    /* 移除之前的边框和圆角样式 */
    td:first-child,
    td:last-child {
        border-radius: 0;
    }

    td[data-label="当前昵称"],
    td[data-label="真实昵称"],
    td[data-label="抖音号"],
    td[data-label="荣誉等级"],
    td[data-label="灯牌等级"] {
        background: #fff;
    }
}

/* 友情链接样式 */
.friend-links {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.friend-links h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

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

.link-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: #edf2f7;
}

.link-item i {
    color: #3498db;
    font-size: 20px;
    margin-top: 3px;
}

.link-item span {
    font-size: 14px;
    line-height: 1.5;
}

/* 模态框样式 */
.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: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.modal-body {
    text-align: center;
}

.modal-body i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.modal-body p {
    color: #333;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h1, .page-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .subtitle, .page-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .search-container {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    .input-group input[type="text"] {
        width: 100%;
        height: 72px !important;
        font-size: 16px;
        padding: 0 20px;
        line-height: 72px;
    }

    .input-group button {
        width: 100%;
        height: 72px !important;
        font-size: 16px;
        line-height: 72px;
    }

    /* 移动端表格样式 */
    .result-container {
        margin: 0 -15px;
        padding: 0 15px;
    }

    table {
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
        width: 100%;
    }

    tr {
        display: block;
        background: white;
        margin-bottom: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    td {
        display: flex;
        padding: 12px 15px;
        border-bottom: 1px solid #edf2f7;
        font-size: 14px;
        align-items: center;
        background: white;
    }

    td:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    td:last-child {
        border-bottom: none;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    td[data-label="序号"] {
        color: #1a202c;
        background: #edf2f7;
        font-weight: 600;
        text-align: left;
    }

    td[data-label="当前昵称"] {
        color: #2c5282;
        font-weight: 600;
        text-align: left;
    }

    td[data-label="真实昵称"] {
        color: #2b6cb0;
        font-weight: 600;
        text-align: left;
    }

    td[data-label="抖音号"] {
        color: #3182ce;
        font-weight: 600;
        text-align: left;
    }

    td[data-label="荣誉等级"] {
        color: #c05621;
        font-weight: 600;
        text-align: left;
    }

    td[data-label="灯牌等级"] {
        color: #c53030;
        font-weight: 600;
        text-align: left;
    }

    td:before {
        content: attr(data-label);
        width: 80px;
        font-weight: 500;
        color: #4a5568;
        flex-shrink: 0;
    }

    .friend-links {
        padding: 20px;
    }

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

    .auth-container {
        margin: 15px;
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 12px;
    }

    h1, .page-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .subtitle, .page-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .search-container {
        padding: 15px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-group input,
    .input-group input[type="text"],
    .search-container .input-group input {
        width: 100%;
        height: 72px !important;
        font-size: 16px;
        line-height: 72px;
        padding: 0 20px;
    }

    .input-group button,
    .search-container .input-group button {
        width: 100%;
        height: 72px !important;
        font-size: 16px;
        line-height: 72px;
    }

    td {
        padding: 12px 15px;
        font-size: 14px;
        background: white;
    }

    td[data-label="序号"],
    td[data-label="当前昵称"],
    td[data-label="真实昵称"],
    td[data-label="抖音号"],
    td[data-label="荣誉等级"],
    td[data-label="灯牌等级"] {
        font-weight: 600;
        text-align: left;
    }

    td:before {
        width: 75px;
        font-size: 14px;
    }

    .friend-links {
        padding: 15px;
    }
}

.homepage-btn {
    display: inline-block;
    padding: 4px 12px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.homepage-btn:hover {
    background-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 神秘用户样式 */
.mystery-user {
    background-color: #fff8f0;
    border-left: 4px solid #faad14;
}

.mystery-user td {
    color: #faad14;
    font-weight: 500;
}

.mystery-user td:first-child::before {
    content: '👑';
    /*margin-right: 4px;*/
    font-size: 14px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

td {
    color: #2d3748;
    font-size: 14px;
}

tr:hover {
    background-color: #f8fafc;
}

/*td[data-label="序号"],*/
/*td[data-label="荣誉等级"],*/
/*td[data-label="灯牌等级"] {*/
/*    text-align: center;*/
/*}*/

/* 查询结果容器样式优化 */
.result-container {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 表格样式优化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

td {
    background: #fff;
    font-weight: bold;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .result-container {
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    table {
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
        width: 100%;
    }

    tr {
        display: block;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 15px;
        background: #fff;
        /*border: none;*/
        font-size: 14px;
    }

    td[data-label="序号"] {
        background: #EDF2F7;
    }

    td:before {
        content: attr(data-label);
        min-width: 80px;
        font-weight: 600;
        color: #333;
        margin-right: 15px;
    }

    td > span {
        flex: 1;
        text-align: left;
    }

    /* 移除之前的边框和圆角样式 */
    td:first-child,
    td:last-child {
        border-radius: 0;
    }

    td[data-label="当前昵称"],
    td[data-label="真实昵称"],
    td[data-label="抖音号"],
    td[data-label="荣誉等级"],
    td[data-label="灯牌等级"] {
        background: #fff;
    }
} 