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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #1e9fff;
}

a:hover {
    color: #0d8ae6;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}
@media (max-width: 768px) {
    .container { padding: 12px; }
}

/* ========== 头部导航 ========== */
.header {
    background: linear-gradient(135deg, #1e9fff 0%, #0d8ae6 100%);
    color: #fff;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header .logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.header .logo a {
    color: #fff;
}

.header .nav a {
    color: #fff;
    margin: 0 12px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 15px;
}

.header .nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .user-info a {
    color: #fff;
}

/* ========== 搜索栏 ========== */
.search-bar {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.search-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-inner input {
    flex: 1;
    height: 42px;
    border: 2px solid #1e9fff;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
}

.search-inner button {
    height: 42px;
    padding: 0 30px;
    background: #1e9fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

/* ========== 卡片样式 ========== */
.site-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.site-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.site-card .price {
    color: #ff5722;
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0;
}

.site-card .meta {
    color: #888;
    font-size: 13px;
    margin: 4px 0;
}

.site-card .tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.tag-primary {
    background: #e6f7ff;
    color: #1e9fff;
}

.tag-success {
    background: #f6ffed;
    color: #52c41a;
}

.tag-warning {
    background: #fff7e6;
    color: #fa8c16;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-primary {
    background: #1e9fff;
    color: #fff;
    border-color: #1e9fff;
}

.btn-primary:hover {
    background: #0d8ae6;
    color: #fff;
}

.btn-success {
    background: #52c41a;
    color: #fff;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #e04345;
    color: #fff;
}

.btn-warning {
    background: #fa8c16;
    color: #fff;
}

.btn-default {
    background: #fff;
    border-color: #d9d9d9;
    color: #333;
}

.btn-default:hover {
    border-color: #1e9fff;
    color: #1e9fff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #1e9fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
}

.captcha-row img {
    height: 40px;
    cursor: pointer;
    border-radius: 4px;
}

/* ========== 登录/注册页 ========== */
.login-bg {
    background: linear-gradient(135deg, #0c1929 0%, #1a3a5c 30%, #1e4d7b 60%, #1e3c72 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 159, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 159, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -180px;
    left: -120px;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card-front {
    width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.login-brand {
    text-align: center;
    padding: 35px 35px 20px;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e9fff, #1a7fd4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 25px rgba(30, 159, 255, 0.3);
}

.login-brand h1 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.login-brand p {
    font-size: 13px;
    color: #999;
    letter-spacing: 4px;
}

.login-form {
    padding: 0 35px 35px;
}

.input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid #e8ecf1;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f8fafc;
    transition: all 0.3s;
    outline: none;
}

.input-wrap input::placeholder {
    color: #b0b8c1;
}

.input-wrap input:focus {
    border-color: #1e9fff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 159, 255, 0.08);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e9fff 0%, #1a7fd4 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(30, 159, 255, 0.35);
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #33adff 0%, #1e9fff 100%);
    box-shadow: 0 6px 25px rgba(30, 159, 255, 0.45);
    transform: translateY(-1px);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.form-links a {
    font-size: 13px;
    color: #999;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #1e9fff;
}

/* 大号按钮 */
.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* ========== 用户中心 ========== */
.user-center {
    display: flex;
    gap: 20px;
}

.user-sidebar {
    width: 220px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.user-sidebar .user-avatar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-sidebar .user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-sidebar .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e9fff, #69c0ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 0 auto;
}

.user-sidebar .user-avatar p {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.user-menu {
    list-style: none;
    padding: 10px 0;
}

.user-menu li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.user-menu li a:hover,
.user-menu li.active a {
    background: #e6f7ff;
    color: #1e9fff;
    border-left-color: #1e9fff;
}

.user-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.user-main h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========== 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 400;
}

.stat-card .amount {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.stat-card .stat-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.stat-card.blue { border-top: 3px solid #1e9fff; }
.stat-card.blue .amount { color: #1e9fff; }
.stat-card.green { border-top: 3px solid #52c41a; }
.stat-card.green .amount { color: #52c41a; }
.stat-card.orange { border-top: 3px solid #fa8c16; }
.stat-card.orange .amount { color: #fa8c16; }

/* ========== 用户信息网格 ========== */
.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.info-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
}

.info-item:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}

.info-item label {
    color: #999;
    width: 80px;
    flex-shrink: 0;
}

.info-item span {
    color: #333;
    font-weight: 500;
}

/* ========== 钱包操作 ========== */
.wallet-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.wallet-actions .btn {
    flex: 1;
    text-align: center;
}

/* ========== 充值界面 ========== */
.recharge-grid {
    display: flex;
    gap: 30px;
}

.recharge-amounts {
    flex: 0 0 280px;
}

.recharge-amounts h3 {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-option {
    padding: 12px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    color: #333;
}

.amount-option:hover {
    border-color: #1e9fff;
    color: #1e9fff;
}

.amount-option.active {
    border-color: #1e9fff;
    background: #e6f7ff;
    color: #1e9fff;
}

/* ========== 余额信息 ========== */
.balance-info {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 15px;
}

.balance-info .green {
    color: #52c41a;
    font-weight: bold;
    font-size: 20px;
}

/* ========== 账户概况卡片 ========== */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.overview-card {
    background: linear-gradient(135deg, #1e9fff 0%, #0d8ae6 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.overview-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.overview-card .num {
    font-size: 28px;
    font-weight: bold;
}

.overview-card.green {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.overview-card.orange {
    background: linear-gradient(135deg, #fa8c16 0%, #d87706 100%);
}

.overview-card.red {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
}

/* ========== 表格 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th {
    background: #fafafa;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #f0f0f0;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.data-table tr:hover td {
    background: #fafafa;
}

/* ========== 分页 ========== */
.pagination {
    margin-top: 20px;
    text-align: center;
}

/* ThinkPHP 分页输出 <ul class="pagination"><li>... */
ul.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    align-items: center;
}

ul.pagination li {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.pagination li a,
ul.pagination li span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

ul.pagination li a:hover {
    border-color: #1e9fff;
    color: #1e9fff;
}

ul.pagination li.active span {
    background: #1e9fff;
    color: #fff;
    border-color: #1e9fff;
}

ul.pagination li.disabled span {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #333;
}

.pagination .current {
    background: #1e9fff;
    color: #fff;
    border-color: #1e9fff;
}

/* ========== Banner 区域 ========== */
.banner {
    background: linear-gradient(135deg, #1e9fff 0%, #0d8ae6 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== 分区标题 ========== */
.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 22px;
    color: #333;
    border-left: 4px solid #1e9fff;
    padding-left: 15px;
    margin-bottom: 20px;
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.card .price {
    color: #ff5722;
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.card .domain {
    color: #888;
    font-size: 13px;
    margin: 5px 0 15px;
}

/* ========== 求购列表 ========== */
.buy-list {
    list-style: none;
    padding: 0;
}

.buy-list li {
    background: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #555;
}

/* 求购卡片网格 */
.buy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.buy-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.buy-grid .buy-card {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.buy-grid .buy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.buy-grid .buy-card h3 {
    cursor: pointer;
}

.buy-grid .buy-card h3:hover {
    color: #1e9fff;
}

.buy-grid .buy-card h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
}

.buy-grid .buy-budget {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.buy-grid .buy-budget span {
    color: #ff5722;
    font-size: 20px;
    font-weight: bold;
}

.buy-grid .buy-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.buy-grid .buy-meta {
    font-size: 12px;
    color: #bbb;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
}

/* ========== 友情链接 ========== */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links a {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.links a:hover {
    border-color: #1e9fff;
    color: #1e9fff;
}

/* ========== 表单样式补充 ========== */
.form-item {
    margin-bottom: 18px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-item input,
.form-item select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.form-item input:disabled {
    background: #f5f5f5;
    color: #999;
}

.form-item small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.form-select:focus {
    border-color: #1e9fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

/* ========== 富文本编辑器 ========== */
#editor-container {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
}

#editor-container .w-e-toolbar {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 6px 6px 0 0;
    background: #fafafa;
}

#editor-container .w-e-text-container {
    border: none;
    border-radius: 0 0 6px 6px;
    min-height: 300px;
}

#editor-container .w-e-text {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 详情页 ========== */
.detail-page {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.detail-card h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-info {
    margin-bottom: 25px;
}

.detail-info p {
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    border-bottom: 1px dashed #f0f0f0;
}

.detail-info p strong {
    display: inline-block;
    width: 80px;
    color: #333;
}

.detail-info .price {
    color: #ff5722;
    font-size: 24px;
    font-weight: bold;
}

.detail-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.detail-actions .btn {
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 6px;
}

/* ========== 区块头部 ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    border-left: 4px solid #1e9fff;
    padding-left: 15px;
}

.detail-page h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 15px 0;
}

.detail-meta .item {
    text-align: center;
}

.detail-meta .item .label {
    color: #999;
    font-size: 13px;
}

.detail-meta .item .value {
    font-size: 20px;
    font-weight: bold;
    color: #ff5722;
}

/* ========== 页脚 ========== */
.footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.footer a {
    color: #999;
    margin: 0 10px;
}

.footer a:hover {
    color: #1e9fff;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 12px 0;
    color: #999;
    font-size: 13px;
}

.breadcrumb a {
    color: #1e9fff;
}

/* ========== 提示信息 ========== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

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

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

.alert-warning {
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #fa8c16;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ========== 友链网格 ========== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 130px;
}

.link-card:hover {
    border-color: #1e9fff;
    box-shadow: 0 4px 12px rgba(30, 159, 255, 0.15);
    transform: translateY(-2px);
}

.link-card .link-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.link-card .link-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e9fff, #69c0ff);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.link-card .link-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========== 订单状态 ========== */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status-pending {
    background: #fff7e6;
    color: #fa8c16;
}

.status-paid {
    background: #e6f7ff;
    color: #1e9fff;
}

.status-delivered {
    background: #f6ffed;
    color: #52c41a;
}

.status-completed {
    background: #f0f5ff;
    color: #2f54eb;
}

.status-cancelled {
    background: #fff1f0;
    color: #ff4d4f;
}

/* ========== 响应式 ========== */
/* ========== 网站详情页 ========== */
.site-detail-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.site-detail-main {
    flex: 1;
    min-width: 0;
}

.site-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 详情头部 */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.detail-header h1 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

/* 详情meta区 */
.detail-meta {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f5ff 100%);
    border-radius: 12px;
    padding: 18px 10px;
    margin-bottom: 25px;
    border: 1px solid #e8f0fe;
}

.meta-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e8f0fe;
    padding: 0 10px;
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.meta-value {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.meta-value.price {
    font-size: 28px;
    color: #ff5722;
}

.meta-value.domain {
    color: #1e9fff;
    word-break: break-all;
}

.meta-value.time {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* 详情区域 */
.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    font-size: 18px;
    color: #333;
    border-left: 4px solid #1e9fff;
    padding-left: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-description {
    line-height: 2;
    color: #555;
    font-size: 15px;
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.detail-description img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* 交易须知 */
.trade-notice {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    align-items: flex-start;
}

.notice-item:nth-child(2) {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.notice-item:nth-child(3) {
    background: #fef2f2;
    border-color: #fecaca;
}

.notice-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.notice-item strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.notice-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.sidebar-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 卖家信息 */
.seller-avatar-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e9fff, #69c0ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.seller-name strong {
    font-size: 16px;
    color: #333;
    display: block;
}

.auth-badge {
    display: inline-block;
    font-size: 12px;
    color: #52c41a;
    margin-top: 4px;
}

.seller-stats {
    display: flex;
    gap: 0;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.seller-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid #f0f0f0;
}

.seller-stat:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #1e9fff;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.seller-contact {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    line-height: 2;
}

/* 卖家其他在售 */
.other-sites {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.other-site-item {
    display: block;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.other-site-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateX(3px);
}

.other-site-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.other-site-price {
    font-size: 16px;
    color: #ff5722;
    font-weight: bold;
}

.other-site-domain {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 帮助信息 */
.help-info {
    font-size: 13px;
    color: #888;
    line-height: 2;
}

.help-contact {
    color: #555;
    margin-top: 5px;
}

/* 网站卡片链接 */
.site-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========== 分类导航 ========== */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-items: center;
}
.cat-item {
    display: inline-block;
    padding: 7px 16px;
    background: #f5f7fa;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.cat-item:hover {
    background: #e6f7ff;
    color: #1e9fff;
    border-color: #91d5ff;
}
.cat-item.active {
    background: linear-gradient(135deg, #1e9fff, #0d8ae6);
    color: #fff;
    border-color: #1e9fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30,159,255,0.3);
}
.cat-item:first-child {
    font-weight: 600;
}
/* 卡片分类标签 */
.card-cat-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1e9fff;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 6px;
}

/* 网站列表卡片 */
.site-list-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.site-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.site-list-card .card-top {
    padding: 22px 20px 15px;
}

.site-list-card .card-top h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-domain {
    font-size: 13px;
    color: #1e9fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-list-card .card-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    gap: 6px;
}

.card-price {
    font-size: 22px;
    font-weight: bold;
    color: #ff5722;
    text-align: center;
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.card-time {
    font-size: 12px;
    color: #bbb;
}

.card-link-text {
    font-size: 12px;
    color: #1e9fff;
}

/* 网站列表页section-header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    border-left: 4px solid #1e9fff;
    padding-left: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    .header-inner {
        width: 100%;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }

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

    .user-center {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .site-detail-layout {
        flex-direction: column;
    }

    .site-detail-sidebar {
        width: 100%;
    }

    .detail-meta {
        flex-wrap: wrap;
    }

    .meta-item {
        flex: 0 0 50%;
        padding: 8px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ========== 自助广告系统 ========== */
/* 广告位卡片 */
.ad-position-grid {
    margin-bottom: 30px;
}
.ad-position-card {
    position: relative;
    overflow: hidden;
}
.ad-position-card:hover {
    border-color: #667eea !important;
    box-shadow: 0 8px 25px rgba(102,126,234,0.15) !important;
    transform: translateY(-2px);
}
.ad-position-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px 0 0 4px;
}
.ad-price-table {
    background: #f9fafb;
}
/* 广告订单卡片 */
.ad-order-card {
    transition: all 0.3s;
}
.ad-order-card:hover {
    border-color: #667eea !important;
    box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}
/* 广告展示容器 */
.ad-display {
    overflow: hidden;
    border-radius: 6px;
    margin: 0 auto;
}
.ad-display img {
    display: block;
    margin: 0 auto;
}
.ad-display:hover {
    opacity: 0.95;
}
.ad-display-multi {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* 广告功能特性 */
.ad-features > div {
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s;
}
.ad-features > div:hover {
    background: #f0f5ff;
}
@media (max-width: 768px) {
    .ad-position-grid {
        grid-template-columns: 1fr !important;
    }
    .ad-features {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
