/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: 0;
}

/* 防止横向溢出 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    background-image: url(../images/common/guide_bg.jpg);
    background-repeat: repeat;
}

a {
    color: #666;
    transition: color 0.3s ease;
}

a:hover {
    color: #D42A3C;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 容器 */
#container {
    max-width: 1300px;
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 全宽度 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    height: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

/* 为body添加padding-top避免内容被固定头部遮挡 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    background-image: url(../images/common/guide_bg.jpg);
    background-repeat: repeat;
    padding-top: 80px;
}

#logo {
    margin: 15px 0;
}

#logo img {
    height: 50px;
    width: auto;
}

/* 导航样式 */
#nav {
    flex: 1;
    margin-left: 50px;
}

#nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav ul li {
    border-top: 2px solid transparent;
    float: left;
    font-size: 20px;
    color: #666;
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}

#nav ul li:hover {
    border-top: 2px solid #D42A3C;
    background: rgba(212, 42, 60, 0.05);
}

#nav ul li a {
    color: #666;
    text-decoration: none;
}

#nav ul li:hover a {
    color: #D42A3C;
}

/* 用户操作区域 */
#user-actions {
}

#user-actions a {
    color: #666;
    font-size: 15px;
    margin: 30px 0;
    margin-right: 30px;
    text-decoration: none;
}

#user-actions a:hover {
    color: #D42A3C;
}



/* 底部样式 - 全宽度 */
#footer {
    width: 100%;
    background: #333;
    color: #797E82;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    width: 196px;
    height: 52px;
}

.footer-info p {
    font-size: 14px;
    margin: 5px 0;
}

.footer-info .icp {
    font-size: 12px;
}

.footer-links {
    border-left: 1px solid #555;
    border-right: 1px solid #555;
    padding: 0 20px;
}

.footer-links ul {
    display: flex;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    font-size: 12px;
    color: #797E82;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-social a {
    margin-left: 15px;
}

.footer-social img {
    width: 30px;
    height: 30px;
}

/* 返回顶部 */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 50px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#back-to-top:hover {
    background: #fff;
    transform: translateY(-2px);
}

#back-to-top img {
    width: 30px;
    height: 30px;
    margin-top: 8px;
}

#back-to-top p {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: #999;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #D42A3C;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background: #B8222E;
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* 价格样式 */
.price {
    color: #D42A3C;
    font-size: 18px;
    font-weight: bold;
}

.original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 10px;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 通用间距 */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }

.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }
.pl-10 { padding-left: 10px; }
.pr-10 { padding-right: 10px; }

/* 文本对齐 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 显示/隐藏 */
.hidden { display: none; }
.visible { display: block; }