:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --border-color: #ddd;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c2461, #1e3799, #4a69bd);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}
/* 页面标题 */
.page-header {
    text-align: center;
    padding: 40px 0;
    background: #20399a;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: #fff;
}
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.top-nav {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.main-nav {
    display: flex;
}

.main-nav a {
    color: white;
    padding: 0 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #4cd137;
}

.user-actions a {
    margin-left: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.user-actions .login {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-actions .register {
    background-color: #4cd137;
    color: #fff;
}

/* 促销标题区域 */
.promo-header {
    text-align: center;
    padding: 40px 0 30px;
}

.promo-title {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-subtitle {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 优惠券分类导航 */
.coupon-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.coupon-nav a {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s;
}

.coupon-nav a:hover, .coupon-nav a.active {
    background-color: #4cd137;
    color: #fff;
}

/* 优惠券卡片区域 */
.coupon-section {
    margin-bottom: 40px;
}

.section-title {
    color: #4cd137;
    font-size: 24px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #4cd137;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.coupon-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #0c2461;
}

.card-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.card-stock {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.buy-btn {
    background-color: #4cd137;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.buy-btn:hover {
    background-color: #44bd32;
}

/* 活动规则 */
.rules-section {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.rules-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.rules-list {
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
}
/* 主要交易区域 */
.trade-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
    color: #5d5d5d;
}
/* 交易表单 */
.trade-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1a4a8a;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.btn-success:hover {
    background: #3d8b40;
}

.btn-block {
    display: block;
    width: 100%;
}
/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step-list {
    list-style: none;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* 文章列表 */
.article-list {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.article-item {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}



.article-excerpt {
    color: #555;
    margin-bottom: 20px;
}
.comment{
    margin: 15px 0;
    background: #f1f1f1;
    padding: 10px 15px;
    border-radius: 5px;
}
.comment-content{
    font-size: 16px;
    text-align: justify;
}
.read-more {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}
/* 底部信息 */
.footer {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4cd137;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #4cd137;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.hotline {
    font-size: 24px;
    font-weight: bold;
    color: #4cd137;
    margin: 10px 0;
}

.work-time {
    font-size: 14px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}
/* 域名列表 */
.domain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.domain-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.domain-header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.domain-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.domain-extension {
    font-size: 14px;
    opacity: 0.8;
}

.domain-body {
    padding: 20px;
}

.domain-price {
    font-size: 28px;
    color: var(--accent-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.domain-features {
    list-style: none;
    margin-bottom: 20px;
}

.domain-features li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

.domain-features li:last-child {
    border-bottom: none;
}

.domain-features .feature-name {
    color: #666;
}

.domain-features .feature-value {
    color: #3294d5;
    font-weight: 500;
}

.domain-actions {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #c0392b;
    color: white;
}

/* 筛选器 */
.domain-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 5px 15px;
    background: var(--light-gray);
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 域名详情内容 */
.domain-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
    color: #1c1c1c;
}

.domain-details {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}


.domain-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 6px;
}


/* 侧边栏 */
.domain-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.similar-domains h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.similar-list {
    list-style: none;
}

.similar-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.similar-list li:last-child {
    border-bottom: none;
}

.similar-list a {
    display: flex;
    justify-content: space-between;
    color: var(--dark-gray);
}

.similar-list a:hover {
    color: var(--primary-color);
}

.similar-price {
    color: var(--accent-color);
    font-weight: bold;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem;
}
.pagination li span,.pagination li a{
    padding: 8px 10px;
}
/* 详情页特有样式 */
.article-header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* 文章内容 */
.article-page{
    display: flex;
    justify-content: space-between;
}
.article-content {
    width: 800px;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}
.article-comment{
    width: 360px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}
.article-title h1{
    color: #193289;
    font-size: 30px;
}
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #2f363c;
    text-align: justify;
}

.article-body h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: var(--secondary-color);
}

.article-body h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-body pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body code {
    font-family: 'Courier New', Courier, monospace;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 14px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

/* 标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    padding: 5px 10px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
}
/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
    }
    .domain-list {
        grid-template-columns: 1fr;
    }
    .main-nav {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .article-page{
        display: block;
    }
    .article-content, .article-comment{
        width: 100%;
    }
    .coupon-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    .domain-content {
        grid-template-columns: 1fr;
    }
    
    .domain-title {
        font-size: 32px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}
