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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8f9fa;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo i {
    color: #f39c12;
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c3e50;
    border-bottom-color: #f39c12;
}

.admin-link {
    background: #2c3e50;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    border-bottom: none !important;
}

.admin-link:hover {
    background: #f39c12 !important;
    color: #fff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #f39c12;
    color: #fff;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-outline {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-outline:hover {
    background: #2c3e50;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 特色功能 */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f39c12;
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 设备展示 */
.devices-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.device-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.device-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.device-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.device-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(44,62,80,0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.device-info {
    padding: 20px;
}

.device-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.device-specs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.device-specs i {
    margin-right: 5px;
    color: #f39c12;
}

.device-pricing {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.daily-price {
    color: #e74c3c;
}

.monthly-price {
    color: #2c3e50;
}

.device-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    color: #f39c12;
    font-size: 1rem;
}

/* 评价 */
.reviews {
    padding: 80px 0;
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
}

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

.reviewer-info strong {
    display: block;
    color: #2c3e50;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

.review-stars {
    color: #f39c12;
}

.review-text {
    color: #555;
    font-style: italic;
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #f39c12;
}

.footer-col i {
    margin-right: 8px;
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 管理后台登录 */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.admin-login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.admin-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 15px;
}

.admin-login-header h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.admin-login-header p {
    color: #999;
    font-size: 0.9rem;
}

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

.admin-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.admin-login-form label i {
    margin-right: 6px;
    color: #f39c12;
}

.admin-login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #f39c12;
}

.admin-login-footer {
    text-align: center;
    margin-top: 20px;
}

.admin-login-footer a {
    color: #2c3e50;
    text-decoration: none;
}

/* 管理后台仪表盘 */
.admin-nav {
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
}

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

.admin-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-nav-right {
    display: flex;
    gap: 10px;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 20px 0;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar li a:hover,
.admin-sidebar li a.active {
    background: #f0f4f8;
    color: #2c3e50;
    border-left: 3px solid #f39c12;
}

.admin-main {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

.admin-main h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.admin-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 600px;
}

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

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.admin-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.admin-form input:focus {
    outline: none;
    border-color: #f39c12;
}

.admin-table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f0f4f8;
    font-weight: 600;
    color: #2c3e50;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.mt-4 {
    margin-top: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .admin-sidebar ul {
        display: flex;
        overflow-x: auto;
    }

    .admin-sidebar li a {
        white-space: nowrap;
        padding: 12px 16px;
    }
}

/* 内页通用 */
.page-banner {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-banner p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.page-content {
    padding: 60px 0;
}