/* style.css - 呱呱网络公司审核专用网站样式 */

:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #212529;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* Main Content */
main {
    padding: 40px 0;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #0056b3;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eee;
}

.product-card h3 {
    font-size: 1.2em;
    margin: 15px 10px;
}

.product-card .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #e44d26;
    margin-bottom: 15px;
}

/* Product Detail Page */
.product-detail-layout {
    display: flex;
    gap: 40px;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-info {
    flex: 1;
}

.product-info .price {
    font-size: 2em;
    color: #e44d26;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-info .buy-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 10px;
}

.product-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Info Pages (After-sales, Guide) */
.info-page h3 {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-top: 30px;
}

.info-page p, .info-page li {
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #6c757d;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    color: var(--primary-color);
}
/* --- 新增：商品卡片增强样式 --- */

/* 让卡片使用flex布局，方向为垂直 */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保卡片在网格中高度一致 */
}

/* 让卡片中间的内容区域自动伸展，填满剩余空间 */
/* 这是实现按钮底部对齐的关键！ */
.product-card .card-content {
    flex-grow: 1;
}

/* 商品描述区域的样式 */
.product-description {
    margin-top: 15px; /* 与价格拉开距离 */
    padding-top: 15px; /* 顶部内边距 */
    border-top: 1px solid #f0f0f0; /* 添加一条优雅的分割线 */
}

/* 美化描述中的无序列表 */
.product-description ul {
    list-style: none; /* 去掉默认的黑点 */
    padding-left: 0; /* 去掉默认的左边内边距 */
    margin: 0;
}

/* 美化描述中的列表项 */
.product-description li {
    font-size: 14px; /* 字体稍小，作为次要信息 */
    color: #666;      /* 柔和的灰色字体 */
    line-height: 1.6; /* 舒适的行高 */
    margin-bottom: 8px; /* 列表项之间的间距 */
    padding-left: 20px; /* 为自定义图标留出空间 */
    position: relative;
}

/* 使用伪元素为每个列表项添加一个绿色的小对勾图标 */
.product-description li::before {
    content: '✓'; /* 对勾符号 */
    color: #07c160; /* 微信绿，与品牌色调匹配 */
    font-weight: bold;
    position: absolute; /* 绝对定位 */
    left: 0;
    top: 1px;
}

/* 确保按钮在内容下方，而不是紧贴着描述 */
.product-card .btn {
    margin-top: auto; /* 自动边距，配合flex-grow，将其推到底部 */
}
