/* 旅游特产网站 - 全新设计样式表 */
/* 主题：温暖橙色+绿色，体现美食文化魅力 */

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #fff8f0 0%, #f0f8f0 50%, #fff8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 主容器 */
#mainbao {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white !important;
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#mainbao::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#mainbao a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#mainbao a:hover {
    color: #fff3e0 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* 面包屑导航特殊处理 */
#mainbao, #mainbao * {
    color: white !important;
}

#mainbao a, #mainbao span {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* 页面标题 */
h1 {
    color: #ff9800 !important;
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    background: linear-gradient(135deg, #fff8f0, #f0f8f0);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 152, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-60%) rotate(10deg); }
}

/* 分类标题 */
.ht {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 12px 20px;
    margin: 15px 0 10px 0;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ht::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ht:hover::before {
    left: 100%;
}

.ht:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.ht a {
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* 导航列表 */
#list-nav {
    margin: 15px 0;
}

#list-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding: 0 10px;
}

#list-nav li {
    margin: 0;
}

#list-nav a {
    display: block;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #ff9800 !important;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 15px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#list-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 152, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

#list-nav a:hover::before {
    left: 100%;
}

#list-nav a:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
}

/* 文章内容 */
article {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px 10px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 152, 0, 0.1);
    position: relative;
    overflow: hidden;
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #4caf50, #ff9800);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

article h1 {
    color: #ff9800;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 152, 0, 0.2);
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
}

/* 相关推荐列表 */
#listmore {
    list-style: none;
    margin: 15px 0;
    padding: 0 10px;
}

#listmore li {
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #4caf50;
}

#listmore li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    border-left-color: #ff9800;
}

#listmore a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
}

#listmore a::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#listmore li:hover a::before {
    opacity: 1;
    left: 10px;
}

#listmore a:hover {
    color: #ff9800;
    padding-left: 25px;
}

/* 搜索框样式 */
table[width="298"] {
    background: linear-gradient(135deg, #fff8f0, #f0f8f0);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.2);
    margin: 20px auto;
    overflow: hidden;
}

.topsearch {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 1em;
    color: #333;
    outline: none;
}

.topsearch::placeholder {
    color: #999;
    font-style: italic;
}

/* 链接样式 - 统一橙色主题 */
a, .blue, .blue14 {
    color: #ff9800 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a:hover, .blue:hover, .blue14:hover {
    color: #f57c00 !important;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

a::after, .blue::after, .blue14::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9800, #4caf50);
    transition: width 0.3s ease;
}

a:hover::after, .blue:hover::after, .blue14:hover::after {
    width: 100%;
}

/* 特殊链接样式覆盖 */
article a, .f14 a {
    color: #ff9800 !important;
}

article a:hover, .f14 a:hover {
    color: #f57c00 !important;
}

/* 页面内所有链接统一橙色主题 */
p a, div a, span a, li a, td a, th a {
    color: #ff9800 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

p a:hover, div a:hover, span a:hover, li a:hover, td a:hover, th a:hover {
    color: #f57c00 !important;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

/* 导航链接特殊处理 - 确保可见性 */
#list-nav a, nav a {
    color: #ff9800 !important;
    background: #ffffff !important;
    border: 2px solid #ff9800 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

#list-nav a:hover, nav a:hover {
    color: white !important;
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-color: #ff9800 !important;
}

/* 表格内链接样式 */
table a {
    color: #ff9800 !important;
    font-weight: 500;
}

table a:hover {
    color: #f57c00 !important;
}

/* 列表内链接样式 */
ul a, ol a {
    color: #ff9800 !important;
    transition: all 0.3s ease;
}

ul a:hover, ol a:hover {
    color: #f57c00 !important;
    padding-left: 5px;
}

/* 文本样式 */
.f14 {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.f14 p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 标题样式 */
.title1 {
    font-weight: bold;
    color: #ff9800;
    font-size: 1.1em;
}

/* 底部链接区域优化 */
div[align="center"] {
    margin: 10px 0;
    padding: 10px 0;
}

div[align="center"] a {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px 0;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

div[align="center"] a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

div[align="center"] a:hover::before {
    left: 100%;
}

div[align="center"] a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* 下一篇链接特殊样式 */
.listmore {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px 0;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.listmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    color: white !important;
}

.listmore a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
}

.listmore a:hover {
    color: white !important;
}

/* 清除浮动优化 */
br[clear="all"] {
    display: none;
}

/* 脚本容器紧凑化 */
div[style*="padding-left: 17px"] {
    padding: 10px 15px !important;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.1);
}

/* 底部区域整体优化 */
div[style*="clear:both"] {
    margin: 5px 0 !important;
    padding: 5px 0 !important;
}

div[style*="padding-top:25px"] {
    padding-top: 10px !important;
    margin: 5px 0 !important;
}

/* 列表更多样式 - 已在上方定义，移除重复 */

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8em;
        margin: 15px 0;
    }
    
    #list-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
        padding: 0 5px;
    }
    
    #list-nav a {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    article {
        margin: 15px 5px;
        padding: 15px;
    }
    
    .ht {
        padding: 10px 15px;
        font-size: 1em;
    }
    
    #mainbao {
        padding: 10px 12px;
        margin: 0 0 12px 0;
    }
}

@media (max-width: 480px) {
    #list-nav ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    #list-nav a {
        padding: 6px 8px;
        font-size: 0.8em;
    }
    
    article {
        margin: 10px 3px;
        padding: 12px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .ht {
        padding: 8px 12px;
        font-size: 0.95em;
    }
}

/* 大屏幕优化 */
@media (min-width: 769px) {
    body {
        max-width: 1200px;
        margin: 0 auto;
        background: linear-gradient(135deg, #fff8f0 0%, #f0f8f0 50%, #fff8f0 100%);
    }
    
    #list-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    article {
        max-width: 800px;
        margin: 20px auto;
    }
    
    img {
        max-width: 400px;
        display: block;
        margin: 0 auto;
    }
    
    #mainbao {
        max-width: 1200px;
        margin: 0 auto 15px auto;
    }
    
    .ht {
        max-width: 1200px;
        margin: 15px auto 10px auto;
    }
    
    #listmore {
        max-width: 1200px;
        margin: 15px auto;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff9800, #4caf50);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f57c00, #66bb6a);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article, #listmore li, .ht {
    animation: fadeInUp 0.6s ease-out;
}

/* 特殊效果 */
#listmore li:nth-child(odd) {
    border-left-color: #ff9800;
}

#listmore li:nth-child(even) {
    border-left-color: #4caf50;
}

/* 美食图标装饰 */
.ht:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
}

.ht:nth-child(even)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
}

/* 其他页面元素优化 */
div[align="center"] {
    text-align: center;
    margin: 20px 0;
}

div[align="center"] img {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 152, 0, 0.2);
}

div[align="center"] img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
}

/* 表格样式优化 */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

td, th {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 152, 0, 0.1);
}

tr:hover {
    background: rgba(255, 152, 0, 0.05);
}

/* 段落样式优化 */
p {
    margin: 10px 0;
    line-height: 1.8;
    color: #555;
}

/* 强调文本样式 */
strong, b {
    color: #ff9800;
    font-weight: bold;
}

/* 标题样式优化 */
h2, h3, h4, h5, h6 {
    color: #ff9800 !important;
    margin: 15px 0 10px 0;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.3em;
    color: #4caf50 !important;
    border-left-color: #4caf50;
}

/* 列表样式优化 */
ul, ol {
    margin: 10px 0;
    padding-left: 20px;
}

li {
    margin: 5px 0;
    line-height: 1.6;
}

/* 特殊文本样式 */
.title1 {
    font-weight: bold;
    color: #ff9800;
    font-size: 1.1em;
    display: block;
    margin: 15px 0 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #fff8f0, #f0f8f0);
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

/* 清除浮动 */
.clear, .clearfix {
    clear: both;
}

/* 脚本容器样式 */
div[style*="clear:both"] {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.1);
}

/* 特产列表页面特殊样式 */
#tjtable {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
}

#tjtable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

#tjtable tr {
    border-bottom: 1px solid rgba(255, 152, 0, 0.1);
    transition: all 0.3s ease;
}

#tjtable tr:hover {
    background: rgba(255, 152, 0, 0.05);
}

#tjtable td {
    padding: 15px;
    vertical-align: top;
    border: none;
}

/* 图片列样式 */
#bright {
    width: 126px;
    text-align: center;
}

#bright img {
    width: 120px !important;
    height: 86px !important;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 152, 0, 0.2);
    object-fit: cover;
}

#bright img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
}

/* 标题列表样式 */
#titlename {
    list-style: none;
    margin: 0;
    padding: 0;
}

#titlename li {
    margin: 0;
    padding: 0;
}

#titlename a {
    color: #ff9800 !important;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

#titlename a:hover {
    color: #f57c00 !important;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
    transform: translateX(5px);
}

/* 描述文本样式 */
#textlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

#textlist li {
    margin: 0;
    padding: 0;
}

#textlist a {
    color: #555 !important;
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

#textlist a:hover {
    color: #ff9800 !important;
    text-shadow: 0 0 3px rgba(255, 152, 0, 0.2);
}

/* 分隔线样式 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
    margin: 20px 0;
    position: relative;
}

hr::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff8f0;
    padding: 0 10px;
    font-size: 0.8em;
}

/* 分页样式 */
#list-page {
    text-align: center;
    margin: 20px 0;
}

#list-page ul {
    list-style: none;
    display: inline-flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#list-page li {
    margin: 0;
    padding: 0;
}

#list-page a {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

#list-page a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    color: white !important;
}

/* 特殊类名样式 */
.b16, .r14 {
    color: #ff9800 !important;
    font-weight: bold;
}

.r14 {
    font-size: 0.95em;
    line-height: 1.6;
}

/* 更多链接样式 */
.f14b {
    font-weight: bold;
    color: #ff9800;
}

/* 页面标题优化 - 移除重复样式，使用上面的h1样式 */

/* 响应式优化 */
@media (max-width: 768px) {
    #tjtable {
        margin: 5px;
    }
    
    #bright {
        width: 100px;
    }
    
    #bright img {
        width: 90px !important;
        height: 65px !important;
    }
    
    #tjtable td {
        padding: 10px;
    }
    
    #titlename a {
        font-size: 1em;
    }
    
    #textlist a {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    #tjtable {
        display: block;
    }
    
    #tjtable tr {
        display: block;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    #bright {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    #bright img {
        width: 120px !important;
        height: 86px !important;
    }
}
