/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

a:hover {
    color: #3498db;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e0e0e0;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    padding: 5px 10px;
}

/* 导航栏下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333 !important;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 搜索栏样式 */
.search-bar {
    background-color: #f1f1f1;
    padding: 15px 0;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 首页样式 */
.hero {
    margin-bottom: 30px;
}

.background-image {
    background-color: #f8f8f8;
    padding: 50px 0;
    border-radius: 8px;
    margin-top: 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.steps {
    text-align: left;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.steps p {
    margin-bottom: 10px;
}

.categories {
    margin-bottom: 30px;
}

.categories h2 {
    text-align: center;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.featured-reports {
    margin-bottom: 30px;
}

.featured-reports h2 {
    text-align: center;
    margin-bottom: 20px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 修改报告卡片样式 */
.report-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.report-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.report-price {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.report-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.report-intro {
    margin-bottom: 15px;
    color: #34495e;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.ad-banners {
    margin-bottom: 30px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.ad-item {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

/* 产品详情页样式 */
.product-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.product-header {
    margin-bottom: 20px;
}

.product-header h1 {
    margin-bottom: 10px;
}

.product-meta {
    color: #666;
    font-size: 14px;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.placeholder-image {
    background-color: #f1f1f1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-introduction, .product-details {
    margin-bottom: 20px;
}

.product-introduction h2, .product-details h2 {
    margin-bottom: 10px;
}

.product-details ul {
    list-style: none;
}

.product-details li {
    margin-bottom: 5px;
}

.purchase-options {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: bold;
}

.payment-methods h3 {
    margin-bottom: 10px;
}

.payment-methods ul {
    list-style: none;
}

.payment-methods li {
    margin-bottom: 5px;
}

.customer-message {
    margin-top: 30px;
}

.customer-message h2 {
    margin-bottom: 20px;
}

.message-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100px;
    margin-bottom: 10px;
}

.message-list {
    margin-top: 20px;
}

.message-item {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* 购物车样式 */
.cart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.cart-container h1 {
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.item-info {
    flex: 1;
}

.item-meta {
    color: #666;
    font-size: 14px;
}

.item-meta span {
    margin-right: 10px;
}

.item-price {
    font-weight: bold;
    margin: 0 20px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.total {
    font-size: 18px;
}

.total-amount {
    font-weight: bold;
    margin-left: 10px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart p {
    margin-bottom: 20px;
    color: #666;
}

/* 结账页面样式 */
.checkout-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.checkout-container h1 {
    margin-bottom: 20px;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.payment-options {
    margin-top: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.payment-option input {
    margin-right: 10px;
}

.order-summary {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.order-summary h2 {
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.checkout-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }
}