/* styles.css - 乐透大师多语言版样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fc 0%, #eef2f7 100%);
    color: #1a2634;
    line-height: 1.5;
    transition: all 0.2s ease;
}

/* RTL 阿拉伯语样式 */
body.rtl {
    direction: rtl;
    text-align: right;
}
body.rtl .language-switcher {
    direction: ltr;
}
body.rtl .card-badge {
    right: auto;
    left: 20px;
}
body.rtl .gmall {
    float: left;
}
body.rtl .title .gmall {
    margin-left: 0;
    margin-right: 12px;
}

.container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* 多语言切换栏 */
.lang-bar {
    background: white;
    border-radius: 60px;
    display: inline-flex;
    gap: 6px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #2c3e4e;
    font-family: inherit;
}
.lang-btn i {
    margin-right: 6px;
}
body.rtl .lang-btn i {
    margin-right: 0;
    margin-left: 6px;
}
.lang-btn.active {
    background: #1e5a7d;
    color: white;
    box-shadow: 0 2px 8px rgba(30,90,125,0.3);
}
.lang-btn:hover:not(.active) {
    background: #e9ecef;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(145deg, #0b2b3f 0%, #123e56 100%);
    border-radius: 32px;
    padding: 32px 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "🎲";
    font-size: 180px;
    opacity: 0.08;
    position: absolute;
    right: 20px;
    bottom: -30px;
    pointer-events: none;
}
body.rtl .hero-section::before {
    right: auto;
    left: 20px;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 28px;
}
.hero-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
}

/* 产品卡片网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}
.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0,0,0,0.12);
}
.card-img {
    width: 100%;
    background: #f0f4f9;
    text-align: center;
    padding: 24px 20px;
}
.card-img img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
}
.card-content {
    padding: 24px;
}
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}
.gmall {
    font-size: 0.85rem;
    background: #eef2ff;
    padding: 5px 12px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e5a7d;
    font-weight: 500;
    transition: background 0.2s;
}
.gmall:hover {
    background: #d9e2ef;
}
.card-desc {
    color: #4a5b6e;
    margin: 16px 0;
    line-height: 1.5;
}
.paypal-container {
    margin-top: 20px;
    min-height: 45px;
}

/* 特色区块 + 文章区块 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 48px 0;
}
.info-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    border-left: 4px solid #1e5a7d;
    padding-left: 14px;
}
body.rtl .info-card h3 {
    border-left: none;
    border-right: 4px solid #1e5a7d;
    padding-left: 0;
    padding-right: 14px;
}
.article-list {
    list-style: none;
}
.article-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}
.article-list a {
    text-decoration: none;
    color: #2c3e4e;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
}
.article-list a:hover {
    color: #1e5a7d;
}
footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: #5a6e7c;
    font-size: 0.9rem;
}
@media (max-width: 700px) {
    .hero-title { font-size: 1.8rem; }
    .container-modern { padding: 16px; }
    .hero-section { padding: 24px; }
}