/* ========================================
   破刀网络 - 传奇游戏官网样式 V2
   WWW.4PK.COM
   参考9ssff.com布局
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "黑体", sans-serif;
    background: #1a1a1a;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.gold-text {
    background: linear-gradient(180deg, #ffe9a8 0%, #d4a017 50%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PC端顶部导航
   ======================================== */
.pc-header {
    position: relative;
    background: linear-gradient(180deg, #2a2a35 0%, #1e1e28 100%);
    border-bottom: 1px solid #3a3a4a;
    z-index: 100;
}

.pc-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 90px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 0;
}

.pc-header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0;
    flex-shrink: 0;
}

.pc-header-logo img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
}

.pc-header-logo .logo-text {
    display: none;
}

.pc-header-logo .logo-sub {
    display: none;
}

.new-version-tag {
    display: none;
}

.new-version-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #a88b4a;
}

.pc-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 10px;
}

.pc-nav-item {
    padding: 15px 35px;
    text-align: center;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.pc-nav-item .nav-cn {
    font-size: 18px;
    color: #c0c0d0;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pc-nav-item .nav-en {
    font-size: 10px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pc-nav-item:hover .nav-cn,
.pc-nav-item.active .nav-cn {
    color: #d4a017;
}

.pc-nav-item::before,
.pc-nav-item::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #4a4a5a;
    opacity: 0;
    transition: all 0.3s ease;
}

.pc-nav-item::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
}

.pc-nav-item::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
}

.pc-nav-item:hover::before,
.pc-nav-item:hover::after,
.pc-nav-item.active::before,
.pc-nav-item.active::after {
    opacity: 1;
    border-color: #d4a017;
}

/* ========================================
   PC端主视觉区域
   ======================================== */
.pc-hero {
    position: relative;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
    min-height: 600px;
}

.pc-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 248, 230, 0.25);
    z-index: 1;
}

.pc-hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: floatUp 8s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

.pc-hero-logo-text {
    font-size: 110px;
    font-weight: 900;
    letter-spacing: 12px;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #fff5d4 0%, #ffe082 20%, #ffc107 40%, #d4a017 60%, #a67c00 80%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(255, 193, 7, 0.4));
    text-shadow: none;
    position: relative;
    z-index: 10;
    font-family: "SimHei", "Microsoft YaHei", "黑体", sans-serif;
}

.pc-hero-logo-text::before {
    content: '破刀网络';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    -webkit-text-stroke: 3px rgba(60, 30, 0, 0.6);
    -webkit-text-fill-color: transparent;
    z-index: -1;
    letter-spacing: 12px;
}

.pc-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    text-align: center;
}

.pc-hero-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pc-hero-seal {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c0392b, #922b21);
    border: 2px solid #7b241c;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

.pc-hero-url-text {
    font-size: 32px;
    font-weight: bold;
    color: #3a2a10;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.6);
}

.pc-hero-slogan {
    font-size: 20px;
    color: #2a1a05;
    letter-spacing: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.pc-hero-sub-slogan {
    font-size: 18px;
    color: #3a2a10;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.pc-hero-sub-slogan::before,
.pc-hero-sub-slogan::after {
    content: '◇';
    color: #8a7a5a;
    font-size: 14px;
}

.slogan-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a7a5a);
}

.slogan-line.right {
    background: linear-gradient(90deg, #8a7a5a, transparent);
}

/* 右侧竖排标签 */
.pc-hero-side-tags {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.side-tag {
    padding: 10px 20px;
    background: rgba(255,255,255,0.7);
    border: 1px solid #b0a080;
    color: #4a3a20;
    font-size: 15px;
    letter-spacing: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.side-tag:hover {
    background: rgba(212, 160, 23, 0.2);
    border-color: #d4a017;
    color: #8b6914;
}

.side-tag.top-tag {
    background: transparent;
    border: none;
    color: #6a5a40;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ========================================
   PC端游戏卡片区域
   ======================================== */
.pc-games-section {
    background: linear-gradient(180deg, #c8c8d8 0%, #b8b8c8 100%);
    padding: 40px 30px 60px;
    position: relative;
    min-height: 500px;
}

.pc-games-grid {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pc-game-card {
    position: relative;
    border: 3px solid #8a7a5a;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    background: #000;
    height: 380px;
}

.pc-game-card:hover {
    transform: translateY(-8px);
    border-color: #d4a017;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,160,23,0.3);
}

.pc-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-game-card .card-overlay {
    display: none;
}

.enter-btn {
    display: none;
}

/* 游戏卡片平台图标 */
.card-platform-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.card-platform-icons .platform-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(212,160,23,0.5);
    border-radius: 6px;
    font-size: 18px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.pc-game-card:hover .card-platform-icons .platform-icon {
    background: rgba(0,0,0,0.8);
    border-color: #d4a017;
    transform: scale(1.1);
}

/* ========================================
   手机端样式
   ======================================== */
.mobile-header {
    display: none;
    background: #0a0a0a;
    padding: 20px 15px 15px;
    text-align: center;
}

.mobile-hero-logo {
    max-width: 320px;
    margin: 0 auto 10px;
}

.mobile-hero-logo img {
    width: 100%;
}

.mobile-url {
    font-size: 18px;
    color: #8a7a5a;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 手机端游戏推荐区 */
.mobile-games-section {
    display: none;
    background: #1a1a1a;
    padding: 20px 15px;
}

.mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-section-title .dots {
    display: flex;
    gap: 3px;
}

.mobile-section-title .dots span {
    width: 5px;
    height: 5px;
    background: #8a7a5a;
    border-radius: 50%;
}

.mobile-section-title h2 {
    font-size: 20px;
    color: #c9a96e;
    letter-spacing: 3px;
    font-weight: 500;
}

.mobile-game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-game-card {
    background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.mobile-game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4a017, #8b6914);
}

.mobile-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #8a7a5a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.mobile-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-game-info {
    flex: 1;
    min-width: 0;
}

.mobile-game-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mobile-game-name {
    font-size: 19px;
    color: #f0e0c0;
    font-weight: bold;
    letter-spacing: 1px;
}

.mobile-platform-icons {
    display: flex;
    gap: 5px;
}

.platform-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.platform-icon.pc { color: #5dade2; }
.platform-icon.android { color: #2ecc71; }
.platform-icon.ios { color: #3498db; }

.mobile-game-desc {
    font-size: 13px;
    color: #c9a96e;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.mobile-game-brand {
    font-size: 12px;
    color: #8a7a5a;
}

.mobile-game-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #5a5a5a;
    color: #e0d0b0;
    font-size: 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.mobile-game-btn:hover {
    background: linear-gradient(180deg, #d4a017 0%, #8b6914 100%);
    border-color: #d4a017;
    color: #1a1a1a;
}

.mobile-game-bottom-desc {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    font-size: 13px;
    color: #7a6a5a;
    letter-spacing: 1px;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: #0a0a0a;
    padding: 30px;
    text-align: center;
    border-top: 2px solid #3a3020;
}

.site-footer p {
    font-size: 13px;
    color: #5a4d3a;
    line-height: 2;
}

.site-footer a {
    color: #8b6914;
}

/* ========================================
   返回顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #d4a017, #8b6914);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   响应式 - 手机端
   ======================================== */
@media (max-width: 768px) {
    .pc-header {
        display: none;
    }
    .pc-hero {
        display: none;
    }
    .pc-games-section {
        display: none;
    }
    .mobile-header {
        display: block;
    }
    .mobile-games-section {
        display: block;
    }
    .mobile-game-card {
        flex-wrap: wrap;
    }
    .mobile-game-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .site-footer {
        padding: 20px 15px;
    }
    .site-footer p {
        font-size: 11px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pc-nav-item {
        padding: 15px 20px;
    }
    .pc-nav-item .nav-cn {
        font-size: 16px;
    }
    .pc-games-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}
