/* Basic Resets & Global Styles */
:root {
    --primary-color: #e44d26; /* Example: a vibrant orange/red */
    --secondary-color: #333;
    --text-color: #444;
    --light-bg: #f8f8f8;
    --dark-bg: #222;
    --border-color: #eee;
    --header-height: 70px;
    --footer-height: auto;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

button, select {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background-color: transparent;
    padding: 0;
}

/* Header Styles */
.site-header {
    background-color: var(--dark-bg);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-top {
    background-color: #1a1a1a;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #333;
}

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

.header-top .top-link {
    color: #ccc;
    margin-right: 15px;
}

.header-top .top-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.language-selector select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 4px;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cccccc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.8-15%209.4-2.8%205.6-2.2%2012.4%201.7%2017.3l139.3%20140.8c5.4%205.4%2014.2%205.4%2019.6%200l139.3-140.8c3.9-4.9%204.5-11.7%201.7-17.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    display: block;
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.main-nav .nav-link {
    color: #fff;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

.main-nav .nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-buttons .btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.btn-login {
    background-color: #555;
    color: #fff;
}

.btn-login:hover {
    background-color: #777;
}

.btn-register {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-register:hover {
    background-color: #c73d1f; /* Darker primary */
}

.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.mobile-menu.is-active {
    display: block;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    color: #fff;
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-language-selector select {
    width: 80%;
    max-width: 200px;
    margin-top: 10px;
}

.auth-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-top {
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 15px;
}

.footer-col ul {
    padding: 0;
}

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

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    color: #fff;
    font-size: 1.2em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.payment-icons img {
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin: 0;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav, .auth-buttons {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-main .container {
        justify-content: space-between;
    }
    .header-top .top-left {
        display: none; /* Hide some top links on smaller screens */
    }
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        text-align: center;
        margin-bottom: 30px;
        max-width: 400px;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
    .payment-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
