/* 邦国崛起全局统一样式 */

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

body {
    background: #1a2029;
    color: #e6e6e6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 头部样式 */
.minecraft-header {
    background: #2e7d32;
    border-bottom: 3px solid #1b5e20;
    border-radius: 8px;
    padding: 25px 30px;
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.minecraft-header h1 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.minecraft-header p {
    color: #e8f5e8;
    font-size: 1rem;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* 容器样式 */
.nes-container {
    background: #232d3a;
    border: 2px solid #2e7d32;
    border-radius: 12px;
    margin: 50px auto 30px;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 35px 25px 25px 25px;
}

.nes-container > * {
    box-sizing: border-box;
}

.nes-container.with-title > .title {
    background: #43a047;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid #1b5e20;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 网格布局 */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 10px 0;
    padding: 0;
}

/* 卡片样式 */
.country-card {
    background: #1a2029;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    border-color: #66bb6a;
}

.country-card h3 {
    color: #81c784;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.country-card .country-description {
    color: #b0bec5;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    line-height: 1.6;
    height: auto;
    overflow: hidden;
}

.country-card .package-badge {
    background: #43a047;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
    font-weight: 600;
}

/* 模板卡片样式 */
.template-card {
    background: #1a2029;
    border: 2px solid #5c6bc0;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.template-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(92, 107, 192, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover::before {
    opacity: 1;
}

.template-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 20px rgba(92, 107, 192, 0.4);
    border-color: #7986cb;
}

.template-card .template-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: block;
    fill: currentColor;
    color: #7986cb;
    flex-shrink: 0;
}

.template-card h3 {
    color: #7986cb;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.template-card .template-description {
    color: #b0bec5;
    font-size: 0.8rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.template-card .template-tag {
    background: #5c6bc0;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(92, 107, 192, 0.3);
    transition: all 0.3s ease;
}

.template-card:hover .template-tag {
    background: #7986cb;
    transform: scale(1.05);
}

/* 模板网格布局 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding: 0;
}

.template-intro {
    margin-bottom: 20px;
    color: #b0bec5;
    font-size: 1rem;
    line-height: 1.6;
}

/* 特色区块 */
.feature-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 10px 0;
    padding: 0;
}

.feature-item {
    background: #1a2029;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    border-color: #66bb6a;
}

.feature-item h3 {
    color: #81c784;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.sidebar-title .icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.feature-item p {
    color: #b0bec5;
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-item code {
    background: #1a2029;
    padding: 2px 6px;
    border-radius: 4px;
    color: #81c784;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.85rem;
}

/* 服务器推广区块 */
.server-promotion {
    background: #5d4037;
    border: 2px solid #3e2723;
    padding: 30px;
    text-align: center;
    margin: 10px auto;
    max-width: 100%;
    border-radius: 12px;
}

.server-promotion h2 {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.server-promotion p {
    color: #e8f5e8;
    font-size: 1rem;
    line-height: 1.8;
    margin: 10px 0;
}

/* 按钮样式 */
.minecraft-button,
.cta-buttons .minecraft-button {
    background: #43a047;
    border: 2px solid #1b5e20;
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1rem;
    display: inline-block;
    cursor: pointer;
}

.minecraft-button:hover {
    background: #66bb6a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 24px;
    color: #b0bec5;
    font-size: 0.9rem;
    border-top: 2px solid #2e7d32;
    margin-top: 40px;
    background: #1a2029;
}

.footer p {
    margin: 8px 0;
}

/* 错误和信息容器 */
.error-container,
.info-container {
    background: #232d3a;
    border: 2px solid #2e7d32;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.error-container h1,
.info-container h1 {
    color: #81c784;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.error-container p,
.info-container p {
    color: #b0bec5;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

/* 按钮组 */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 内容区域 */
.country-content {
    padding: 24px;
    line-height: 1.8;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.country-content h1 {
    color: #81c784;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 600;
}

.country-content h2 {
    color: #81c784;
    margin: 24px 0 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.country-content h3 {
    color: #81c784;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.country-content p {
    margin-bottom: 16px;
    color: #e6e6e6;
}

/* SVG 图标样式 */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    fill: currentColor;
    flex-shrink: 0;
}

.main-nav .icon,
.cta-buttons .icon,
.minecraft-button .icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.nes-container.with-title > .title .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: text-bottom;
}

/* 导航栏样式 */
.main-nav {
    background: #1a2029;
    border-bottom: 2px solid #2e7d32;
    padding: 0;
    margin: 0 auto 20px;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 12px 16px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover {
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.1);
    border-bottom-color: #66bb6a;
}

.main-nav a.active {
    color: #66bb6a;
    border-bottom-color: #66bb6a;
    background: rgba(102, 187, 106, 0.15);
}

/* 导航样式 */
.country-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #81c784;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a2029;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.2);
}

.form-group input[type="submit"],
button[type="submit"] {
    width: 100%;
    padding: 14px 28px;
    background: #43a047;
    border: 2px solid #1b5e20;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.form-group input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #66bb6a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

/* 错误提示 */
.error {
    color: #ef5350;
    margin-bottom: 20px;
    font-size: 0.95rem;
    padding: 12px 16px;
    background: rgba(239, 83, 80, 0.1);
    border: 2px solid #ef5350;
    border-radius: 8px;
}

/* 注册链接 */
.register-link {
    margin-top: 24px;
    font-size: 0.95rem;
    color: #b0bec5;
}

.register-link a {
    color: #81c784;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.register-link a:hover {
    color: #66bb6a;
    text-decoration: underline;
}

/* 状态徽章 */
.status {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
}

.status-active {
    background: #43a047;
    color: white;
}

.status-inactive {
    background: #ef5350;
    color: white;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #43a047;
    color: white;
    border-color: #1b5e20;
}

.btn-primary:hover {
    background: #66bb6a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

.btn-secondary {
    background: #2196F3;
    color: white;
    border-color: #1565c0;
}

.btn-secondary:hover {
    background: #64b5f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

/* 套餐信息 */
.package-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #b0bec5;
}

.package-info p {
    margin: 8px 0;
}

.package-info strong {
    color: #81c784;
    font-weight: 600;
}

/* 欢迎区块 */
.welcome {
    margin-bottom: 30px;
}

.welcome h2 {
    color: #81c784;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome p {
    color: #b0bec5;
    font-size: 1rem;
}

/* 国家信息 */
.country-info {
    background: #1a2029;
    padding: 24px;
    border: 2px solid #2e7d32;
    border-radius: 12px;
    margin-bottom: 30px;
}

.country-info h2 {
    margin-top: 0;
    color: #81c784;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.3rem;
    font-weight: 600;
}

.country-info p {
    color: #b0bec5;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2029;
}

::-webkit-scrollbar-thumb {
    background: #2e7d32;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #43a047;
}

/* 响应式设计 - 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .template-card {
        padding: 24px;
        min-height: 200px;
    }
    
    .template-card .template-icon {
        width: 56px;
        height: 56px;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px;
    }
    
    .template-card {
        padding: 24px;
        min-height: auto;
    }
    
    .template-card .template-icon {
        width: 56px;
        height: 56px;
    }
    
    .template-card h3 {
        font-size: 1.2rem;
    }
    
    .minecraft-header {
        padding: 20px;
        margin: 10px;
    }
    
    .minecraft-header h1 {
        font-size: 1.5rem;
    }
    
    .minecraft-header p {
        font-size: 0.9rem;
    }
    
    .nes-container {
        margin: 30px auto 15px;
        padding-top: 25px;
    }
    
    .nes-container.with-title > .title {
        font-size: 0.9rem;
        padding: 10px 16px;
        top: -15px;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .feature-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .template-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0;
    }
    
    .template-card {
        padding: 20px;
    }
    
    .template-card .template-icon {
        font-size: 2.5rem;
    }
    
    .template-card h3 {
        font-size: 1.2rem;
    }
    
    .server-promotion {
        padding: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }
    
    .cta-buttons .minecraft-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .country-navigation {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
    }
    
    .country-navigation .minecraft-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer {
        padding: 20px 15px;
        font-size: 0.85rem;
    }
}
