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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #1a2a3a;
    line-height: 1.6;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.lang-switch {
    background: #f39c12;
    color: #fff !important;
    border-radius: 25px;
    padding: 8px 18px !important;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243,156,18,0.1) 0%, transparent 70%);
    animation: glow 6s infinite alternate;
}

@keyframes glow {
    0% { transform: translate(0,0); }
    100% { transform: translate(20px,20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f39c12, #e74c3c, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid #f39c12;
}

.btn-secondary:hover {
    background: #f39c12;
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 60px 0;
}

.bg-light {
    background: #fff;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a2a3a;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 10px;
    color: #1a2a3a;
}

.card p {
    color: #5a6a7a;
    margin-bottom: 15px;
}

/* Search */
.search-bar {
    text-align: center;
    margin-bottom: 30px;
}

.search-bar input {
    padding: 12px 25px;
    width: 80%;
    max-width: 500px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: border 0.3s;
}

.search-bar input:focus {
    border-color: #f39c12;
    outline: none;
}

/* Reviews */
.review-card .score {
    color: #f39c12;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-card .author {
    color: #888;
    font-style: italic;
}

/* Security */
.security-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f7f9fc, #eef2f7);
    border-radius: 15px;
}

.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(39,174,96,0.3);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header span:last-child {
    cursor: pointer;
    font-size: 1.5rem;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    background: #f9fafb;
}

.msg {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.msg.bot {
    background: #eef2f7;
    color: #1a2a3a;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.msg.user {
    background: #f39c12;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

.chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 0.95rem;
}

.chat-footer input:focus {
    border-color: #f39c12;
    outline: none;
}

.chat-footer button {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.chat-footer button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #1a2a3a;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer a {
    color: #f39c12;
    text-decoration: none;
}

/* Admin */
.admin-body {
    background: #eef2f7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
}

.login-box {
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
}

.login-box input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #1a2a3a, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.login-box button:hover {
    transform: translateY(-2px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-form h3 {
    margin-top: 25px;
    color: #1a2a3a;
}

.item-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.item-group input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.btn-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.success {
    color: #27ae60;
    font-weight: 600;
}

.error {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a2a3a;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .chat-widget {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }
}

/* 内部页面样式 */
.page-content {
    min-height: 60vh;
    padding: 40px 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.page-content ul {
    list-style: none;
    padding: 0;
}

.page-content li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-content li:last-child {
    border-bottom: none;
}