/* 阿里郎海外服务器托管 - 欧美风格CSS */
/* 站点名称: 아리랑넷 해외서버호스팅 */
/* 编码: UTF-8, 宽屏, 响应式设计 */

:root {
    --primary-color: #0056b3; /* 蓝色系主色调 */
    --secondary-color: #17a2b8; /* 青色 */
    --accent-color: #ff6b00; /* 橙色强调色 */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.main-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    padding: 6px 0;
}

.logo-brand {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #0d1b2a;
    position: relative;
}

/* 品牌名底部装饰线 */
.logo-brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #17a2b8, #0056b3);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 竖线分隔 */
.logo-line {
    display: block;
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, #0056b3, #17a2b8);
    border-radius: 1px;
    flex-shrink: 0;
}

/* 副标题 */
.logo-tag {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #0056b3;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.logo:hover .logo-brand {
    color: #0056b3;
}

.logo:hover .logo-brand::after {
    height: 3px;
    opacity: 1;
}

/* 导航菜单 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

/* 汉堡菜单 - 移动端 */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
}

/* 内容区域 */
.content-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 服务器卡片 */
.server-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.server-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.server-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.server-header h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.server-price {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
}

.server-features {
    padding: 25px;
}

.server-features ul {
    list-style: none;
}

.server-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.server-button {
    display: block;
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.server-button:hover {
    background-color: #138496;
}

/* 优势区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* SEO优化内容区域 */
.seo-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 28px;
}

.seo-content h3 {
    color: var(--dark-color);
    margin: 25px 0 15px;
    font-size: 22px;
}

.seo-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.seo-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* 页脚 */
.main-footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3348 100%);
    color: white;
    padding: 48px 0 0;
    margin-top: 60px;
}

/* ── Brand Section ── */
.footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-logo-brand {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
    position: relative;
}

.footer-logo-brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    border-radius: 1px;
}

.footer-logo-line {
    display: block;
    width: 2px;
    height: 18px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    flex-shrink: 0;
}

.footer-logo-tag {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.03em;
}

.footer-desc {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.7;
    max-width: 420px;
    flex: 1 1 280px;
}

.footer-contact {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Bottom Section ── */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 12px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.footer-nav a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.footer-nav-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.footer-copy p {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    white-space: nowrap;
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-contact {
        margin-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-nav {
        gap: 0;
    }

    .footer-nav a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .footer-nav-divider {
        display: none;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .server-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .seo-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .server-cards {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 40px 0;
    }
}

/* 表格样式 - 用于服务器列表 */
.server-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.server-table th,
.server-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.server-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.server-table tr:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

/* ========================================
   CPU列两行显示样式
   第1行: CPU型号 (nowrap, 不换行)
   第2行: 核心数/频率规格 (nowrap, 不换行)
   ======================================== */
.server-table td.col-cpu {
    white-space: normal !important;
    line-height: 1.4;
    padding: 8px 12px !important;
    vertical-align: middle;
}

.server-table td.col-cpu .cpu-model {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.92rem;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.server-table td.col-cpu .cpu-spec {
    display: block;
    color: #6c757d;
    font-size: 0.83rem;
    white-space: nowrap !important;
    word-break: keep-all !important;
    margin-top: 2px;
}

/* 表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}