* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --primary: #165DFF;
    --success: #52C41A;
    --warning: #FAAD14;
    --danger: #FF4D4F;
    --gray: #666;
    --light: #f5f7fa;
    --border: #e5e6eb;
    --card-radius: 12px;
}

body {
    background: var(--light);
    color: #333;
}

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

/* 头部 */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
}

header .logo img {
    width: 170px;
    height: 42px;
}

header .nav {
    display: flex;
    gap: 30px;
}

header .nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

header .nav a.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* 底部 */
footer {
    background: white;
    padding: 24px;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-top: 20px;
}

footer .footer-nav {
    display: none;
    width: 100%;
    height: 50px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 999999;
    background-color: #fff;
    border-top: 1px solid #dadada;
}

footer .footer-nav ul:after {
    content: '';
    display: block;
    clear: both;
}

footer .footer-nav ul li {
    float: left;
    width: 33.33%;
    height: 50px;
    text-align: center;
}

footer .footer-nav ul li a {
    display: block;
    height: 50px;
    line-height: 50px;
    width: 100%;
    position: relative;
    font-size: 14px;
    color: #666;
}

footer .footer-nav ul li a.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    header .nav {
        display: none;
    }

    footer {
        margin-bottom: 70px;
    }

    footer .footer-nav {
        display: block;
    }
}

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

.logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login {
    cursor: pointer;
}

.user {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user .logout {
    cursor: pointer;
    color: #999999;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #165DFF !important;
}

.layui-form-select dl dd.layui-this {
    color: #165DFF !important;
}

.layui-form-checked, .layui-form-checked:hover {
    border-color: #165DFF;
}

.layui-form-checked:hover > div, .layui-form-checked > div {
    background-color: #5ba0ff;
}

.layui-form-checked:hover > i, .layui-form-checked > i {
    color: #165DFF;
}

.layui-inout-help {
    color: #999;
    padding: 5px 0;
}

.layui-tabs-header .layui-this, .layui-tabs-header li:hover {
    color: #165DFF;
}

.layui-tabs-header .layui-this:after {
    border-bottom: 3px solid #165DFF;
}

.layui-layer-btn .layui-layer-btn0 {
    background-color: #165DFF;
}

/*登录注册*/
.mask {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}

.mask-close {
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url(../image/close_1.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 26px 26px;
    cursor: pointer;
}

.quick_alert {
    position: absolute;
    left: 50%;
    margin-left: -260px;
    top: 50%;
    margin-top: -190px;
    width: 520px;
    background: #fff;
    border-radius: 4px;
    padding-bottom: 30px;
}

.quick-hd {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.quick-hd .item {
    float: left;
    font-size: 20px;
    font-weight: 400;
    color: #777;
    line-height: 50px;
    cursor: pointer;
}

.quick-hd .item.active {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    position: relative;
}

.quick-hd .item.active:after {
    content: "";
    width: 40px;
    height: 4px;
    display: block;
    background: #165DFF;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    bottom: 0;
}

.quick-center {
    width: 400px;
    margin: 0 auto;
    text-align: center;
}

.quick-center .row_label {
    width: 400px;
    height: 54px;
    margin: 20px auto 0;
    position: relative;
}

.quick-center .row_label .left_tip {
    width: 69px;
    height: 54px;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    color: #333;
    line-height: 54px;
    text-align: center;
    font-weight: 500;
    padding-right: 10px;
    background-image: url(../image/icon_down.png);
    background-repeat: no-repeat;
    background-position: right center;
}

.quick-center .row_label input[type=text], .quick-center .row_label input[type=password] {
    display: block;
    height: 54px;
    font-size: 16px;
    color: #777;
    border-radius: 4px;
    border: 1px solid #E6E6E6;
}

.quick-center .row_label input[type=text]:hover {
    border: 1px solid #518FFC;
}

.quick-center .input_tel {
    width: 100%;
    padding-left: 80px;
}

.quick-center .input_yzm {
    width: 100%;
    padding-left: 15px;
    padding-right: 126px;
}

.quick-center .input_psd {
    width: 100%;
    padding-left: 15px;
}

.quick-center .get_code {
    width: 124px;
    height: 54px;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 16px;
    font-weight: 500;
    color: #518FFC;
    text-align: center;
    line-height: 54px;
    cursor: pointer;
}

.quick_btn {
    width: 400px;
    height: 54px;
    margin-top: 30px;
    background: #165DFF;
    border-radius: 27px;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.quick_btn.mt0 {
    margin-top: 0;
}

.login_end_img {
    display: block;
    margin: 62px auto;
}

/* 卡片 */
.card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

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

.card-others .time {
    color: var(--gray);
    margin-right: 20px;
}

.card-others .card-back {
    color: var(--primary);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 卡片容器 */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 卡片内容：数据网格 */
.card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 每个平台一张卡片 */
.platform-card {
    background: white;
    border-radius: 16px;
    transition: transform 0.2s;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.platform-card:active {
    transform: scale(0.98);
}

/* 卡片头部：平台名称 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.platform-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-question {
    font-size: 13px;
    cursor: pointer;
}

/* 平台图标 */
.platform-icon {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.platform-icon img {
    width: 25px;
    height: 25px;
}

.platform-time {
    font-size: 12px;
    color: #666;
}

/* 排名徽章 */
.rank-badge {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.rank-badge.not-ranked {
    background: #fef3e8;
    color: #e67e22;
}

/* 平台标签 */
.platform {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.plat-wenxin {
    background: #e6f7ff;
    color: #1890ff;
}

.plat-qianwen {
    background: #fff7e6;
    color: #3726ff;
}

.plat-yuanbao {
    background: #e6ffef;
    color: #52c41a;
}

.plat-doubao {
    background: #f0f0ff;
    color: #722ed1;
}

.plat-deepseek {
    background: #fff1f0;
    color: #4d6bfe;
}

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 10px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.stat-title {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.stat-num {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.stat-value.small {
    font-size: 16px;
}

/* 提及率高亮 */
.high-rate {
    color: #27ae60;
}

.high-ranking {
    color: #1a73e8;
}

.up {
    color: var(--success);
}

.down {
    color: var(--warning);
}

/* 响应式 */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .quick_alert {
        width: 340px;
        margin-left: -170px;
    }

    .quick-center {
        width: 340px;
    }

    .quick-center .row_label {
        width: 320px;
    }

    .quick_btn {
        width: 320px;
    }
}

.page {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.page ul li {
    display: inline-block;
    font-size: 12px;
    color: #333;
    margin-right: 8px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
}

.page ul li a {
    color: #333;
    font-weight: bold;
    display: block;
    padding-left: 6px;
    padding-right: 6px;
}

.page ul li.active {
    background: #2187f5;
    color: #fff;
}

.page ul li.active a {
    color: #fff;
}